Skip to content

Commit

Permalink
chore(ci): update sauce-connect-action to v3
Browse files Browse the repository at this point in the history
  • Loading branch information
cardoso committed Mar 7, 2025
1 parent 0768b67 commit 9bde0d0
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/karma.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ on:
- 'winter*'

env:
SAUCE_REGION: 'us' # https://github.com/saucelabs/node-saucelabs?tab=readme-ov-file#region
SAUCE_USERNAME: ${{secrets.SAUCE_USERNAME}}
SAUCE_ACCESS_KEY: ${{secrets.SAUCE_ACCESS_KEY}}
PUPPETEER_SKIP_DOWNLOAD: 'true' # only needed for @best/runner-local, unused here
Expand Down Expand Up @@ -46,11 +47,12 @@ jobs:
run: yarn install --frozen-lockfile
working-directory: ./

- uses: saucelabs/sauce-connect-action@v2
- uses: saucelabs/sauce-connect-action@v3.0.0
with:
username: ${{ secrets.SAUCE_USERNAME }}
accessKey: ${{ secrets.SAUCE_ACCESS_KEY }}
tunnelName: ${{ env.SAUCE_TUNNEL_ID }}
region: ${{ env.SAUCE_REGION }}

- run: yarn sauce:ci
- run: DISABLE_SYNTHETIC=1 yarn sauce:ci
Expand Down Expand Up @@ -86,11 +88,12 @@ jobs:
run: yarn install --frozen-lockfile
working-directory: ./

- uses: saucelabs/sauce-connect-action@v2
- uses: saucelabs/sauce-connect-action@v3.0.0
with:
username: ${{ secrets.SAUCE_USERNAME }}
accessKey: ${{ secrets.SAUCE_ACCESS_KEY }}
tunnelName: ${{ env.SAUCE_TUNNEL_ID }}
region: ${{ env.SAUCE_REGION }}

- run: API_VERSION=58 yarn sauce:ci
- run: API_VERSION=58 DISABLE_SYNTHETIC=1 yarn sauce:ci
Expand Down Expand Up @@ -126,11 +129,12 @@ jobs:
run: yarn install --frozen-lockfile
working-directory: ./

- uses: saucelabs/sauce-connect-action@v2
- uses: saucelabs/sauce-connect-action@v3.0.0
with:
username: ${{ secrets.SAUCE_USERNAME }}
accessKey: ${{ secrets.SAUCE_ACCESS_KEY }}
tunnelName: ${{ env.SAUCE_TUNNEL_ID }}
region: ${{ env.SAUCE_REGION }}

- run: API_VERSION=61 yarn sauce:ci
- run: API_VERSION=61 DISABLE_SYNTHETIC=1 yarn sauce:ci
Expand Down Expand Up @@ -168,11 +172,12 @@ jobs:
run: yarn install --frozen-lockfile
working-directory: ./

- uses: saucelabs/sauce-connect-action@v2
- uses: saucelabs/sauce-connect-action@v3.0.0
with:
username: ${{ secrets.SAUCE_USERNAME }}
accessKey: ${{ secrets.SAUCE_ACCESS_KEY }}
tunnelName: ${{ env.SAUCE_TUNNEL_ID }}
region: ${{ env.SAUCE_REGION }}

- run: DISABLE_STATIC_CONTENT_OPTIMIZATION=1 yarn sauce:ci
- run: DISABLE_STATIC_CONTENT_OPTIMIZATION=1 DISABLE_SYNTHETIC=1 yarn sauce:ci
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const {
SAUCE_ACCESS_KEY,
SAUCE_TUNNEL_ID,
SAUCE_USERNAME,
SAUCE_REGION,
} = require('../shared/options');

function getSauceSection({ suiteName, customData }) {
Expand All @@ -35,6 +36,7 @@ function getSauceSection({ suiteName, customData }) {
username,
accessKey,
tunnelIdentifier: SAUCE_TUNNEL_ID,
region: SAUCE_REGION,

build,
testName,
Expand Down
1 change: 1 addition & 0 deletions packages/@lwc/integration-karma/scripts/shared/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ module.exports = {
COVERAGE_DIR_FOR_OPTIONS,

// Sauce labs
SAUCE_REGION: process.env.SAUCE_REGION || 'us',
SAUCE_USERNAME: process.env.SAUCE_USERNAME,
SAUCE_ACCESS_KEY: process.env.SAUCE_ACCESS_KEY || process.env.SAUCE_KEY,
SAUCE_TUNNEL_ID: process.env.SAUCE_TUNNEL_ID,
Expand Down
3 changes: 3 additions & 0 deletions packages/@lwc/integration-tests/scripts/wdio.sauce.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ const browsers = [

const mode = process.env.MODE;

const region = process.env.SAUCE_REGION || 'us';

const username = process.env.SAUCE_USERNAME;
if (!username) {
throw new TypeError('Missing SAUCE_USERNAME environment variable');
Expand Down Expand Up @@ -105,6 +107,7 @@ function getCapabilities() {
}

exports.config = merge(baseConfig.config, {
region,
user: username,
key: accessKey,

Expand Down

0 comments on commit 9bde0d0

Please sign in to comment.