diff --git a/.github/actions/smoke-tests/action.yml b/.github/actions/smoke-tests/action.yml index 7cda5eed..5d6a5b22 100644 --- a/.github/actions/smoke-tests/action.yml +++ b/.github/actions/smoke-tests/action.yml @@ -44,11 +44,13 @@ runs: - 'packages/sdk-core/**' - 'smoketests/**' - '.github/actions/smoke-tests/**' + - '.github/workflows/**' node: - 'packages/sdk-core/**' - 'packages/node/**' - 'smoketests/**' - '.github/actions/smoke-tests/**' + - '.github/workflows/**' - run: npm run smoketest:node shell: bash diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2e407f17..3c3b54fb 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -67,7 +67,6 @@ jobs: browser: ${{ matrix.browser }} smoke_browser_sauce: - if: github.event_name == 'workflow_dispatch' runs-on: ubuntu-latest continue-on-error: true @@ -78,6 +77,13 @@ jobs: node-version: 20.x - run: npm ci - run: npm run build + # NOTE: sc version must match wdio.conf.ts + - run: | + SC_VERSION=5.5.3 + SC_DIR="node_modules/saucelabs/build/sc-loader/.sc-v$SC_VERSION-linux-x86_64" + mkdir -p "$SC_DIR" + curl -sSf "https://saucelabs.com/downloads/sauce-connect/$SC_VERSION/sauce-connect-${SC_VERSION}_linux.x86_64.tar.gz" | tar xz -C "$SC_DIR" + chmod +x "$SC_DIR/sc" - name: smoke-test uses: ./.github/actions/smoke-tests with: diff --git a/smoketests/wdio.conf.ts b/smoketests/wdio.conf.ts index 34ec1437..3c3f7cf6 100644 --- a/smoketests/wdio.conf.ts +++ b/smoketests/wdio.conf.ts @@ -50,6 +50,9 @@ export const config: Options.Testrunner & { { sauceConnect: true, sauceConnectOpts: { + scVersion: '5.5.3', + // the static server runs on localhost + proxyLocalhost: 'direct', // sc output is debug-level and dropped under logLevel info, print it so CI shows the exit reason logger: (output: string) => console.log(`[sauce-connect] ${output}`), },