Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ jobs:
- name: Build Project
run: |
SHORT_SHA=$(echo $GITHUB_SHA | cut -c1-8)
LDFLAG_VERSION="github.com/saucelabs/saucectl/cli/version.Version=v0.0.0+$SHORT_SHA"
LDFLAG_SHA="github.com/saucelabs/saucectl/cli/version.GitCommit=$GITHUB_SHA"
LDFLAG_VERSION="github.com/saucelabs/saucectl/internal/version.Version=v0.0.0+$SHORT_SHA"
LDFLAG_SHA="github.com/saucelabs/saucectl/internal/version.GitCommit=$GITHUB_SHA"
go install ./...
CGO_ENABLED=0 go build -ldflags="-X $LDFLAG_VERSION -X $LDFLAG_SHA" cmd/saucectl/saucectl.go
GOOS=windows GOARCH=amd64 go build cmd/saucectl/saucectl.go
Expand Down
32 changes: 32 additions & 0 deletions .sauce/authoring.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
apiVersion: v1alpha
kind: authoring
sauce:
region: us-west-1
concurrency: 2
metadata:
build: "saucectl authoring $BUILD_ID"
defaults:
timeout: 15m
suites:
# AI-authored test cases live in the service, not in this repository, so
# there is no id that works for every reader: substitute one of your own,
# from `saucectl authoring testcases list`, or reference a suite by name
# with `testSuiteName:` instead. Omit `targets` to use the case's stored ones.
- name: "saucedemo checkout on Chrome"
testCases: [<your-test-case-id>]
targets:
- capabilities:
browserName: chrome
browserVersion: latest
platformName: "Windows 11"
artifacts:
download:
when: fail
match:
- "*.mp4"
- log.json
directory: ./artifacts/
reporters:
junit:
enabled: true
filename: saucectl-authoring-report.xml
5 changes: 2 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,5 @@ coverage:
schema:
$(eval INPUT_SCHEMA := $(shell pwd)/api/global.schema.json)
$(eval OUTPUT_SCHEMA := $(shell pwd)/api/saucectl.schema.json)
pushd scripts/json-schema-bundler/ && \
npm run bundle -- -s $(INPUT_SCHEMA) -o $(OUTPUT_SCHEMA) && \
popd
cd scripts/json-schema-bundler/ && \
npm run bundle -- -s $(INPUT_SCHEMA) -o $(OUTPUT_SCHEMA)
15 changes: 14 additions & 1 deletion api/global.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"testcafe",
"xcuitest",
"xctest",
"playwright-cucumberjs"
"playwright-cucumberjs",
"authoring"
]
}
},
Expand Down Expand Up @@ -129,6 +130,18 @@
"then": {
"$ref": "v1alpha/framework/playwright-cucumberjs.schema.json"
}
},
{
"if": {
"properties": {
"kind": {
"const": "authoring"
}
}
},
"then": {
"$ref": "v1alpha/framework/authoring.schema.json"
}
}
]
}
Loading
Loading