Skip to content

Commit d5912bf

Browse files
committed
ci: temporarily enable Sauce Labs browser test job in PR workflow
This commit temporarily enables the Sauce Labs Browser Compatibility Tests job in .github/workflows/pr.yml so that we can test the Sauce Connect 5 CI upgrade workflow on pull request execution in GitHub Actions. Once the PR CI check is verified green, this step can be reverted. TAG=agy CONV=364b9a2f-e7e4-4f68-9f2a-92ecc5151b67
1 parent 49e77e5 commit d5912bf

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

.github/workflows/pr.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,3 +214,31 @@ jobs:
214214
uses: angular/dev-infra/github-actions/bazel/configure-remote@24ba9709ca4bf6548bba6a9abfe2799e90645a60 # main
215215
- name: Run CLI E2E tests
216216
run: pnpm bazel test --test_env=E2E_SHARD_TOTAL=6 --test_env=E2E_SHARD_INDEX=${{ matrix.shard }} --config=e2e //tests:e2e.snapshots.${{ matrix.subset }}_node${{ matrix.node }}
217+
218+
browsers:
219+
needs: build
220+
runs-on: ubuntu-latest
221+
name: Browser Compatibility Tests
222+
env:
223+
SAUCE_TUNNEL_IDENTIFIER: angular-cli-${{ github.workflow }}-${{ github.run_number }}
224+
steps:
225+
- name: Initialize environment
226+
uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@24ba9709ca4bf6548bba6a9abfe2799e90645a60 # main
227+
- name: Install node modules
228+
run: pnpm install --frozen-lockfile
229+
- name: Setup Bazel
230+
uses: angular/dev-infra/github-actions/bazel/setup@24ba9709ca4bf6548bba6a9abfe2799e90645a60 # main
231+
- name: Setup Bazel RBE
232+
uses: angular/dev-infra/github-actions/bazel/configure-remote@24ba9709ca4bf6548bba6a9abfe2799e90645a60 # main
233+
- name: Start Sauce Connect
234+
uses: saucelabs/sauce-connect-action@cb88b508c6f9ff4d84490093733315dbd55de022 # v3
235+
with:
236+
username: ${{ vars.SAUCE_USERNAME }}
237+
accessKey: ${{ secrets.SAUCE_ACCESS_KEY }}
238+
region: us-west
239+
tunnelName: ${{ env.SAUCE_TUNNEL_IDENTIFIER }}
240+
- name: Run E2E Browser tests
241+
env:
242+
SAUCE_USERNAME: ${{ vars.SAUCE_USERNAME }}
243+
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}
244+
run: pnpm bazel test --config=saucelabs //tests:e2e.saucelabs

0 commit comments

Comments
 (0)