Skip to content

Commit

Permalink
ci: migrate saucelabs tests to GHA
Browse files Browse the repository at this point in the history
Move Saucelabs testing from CircleCI to GHA
  • Loading branch information
josephperrott committed Oct 2, 2023
1 parent 47ac55f commit d6fa1b2
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/ci-privileged.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: CI

on:
push:
pull_request_target:
types: [opened, synchronize, reopened]

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: true

permissions: {}

defaults:
run:
shell: bash

jobs:
saucelabs:
runs-on: ubuntu-latest-4core
env:
SAUCE_USERNAME: ${{ vars.SAUCE_USERNAME }}
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}
steps:
- name: Initialize environment
uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@ba9b4487ced515e5b4d87edd681a3bd9792444d6
with:
cache-node-modules: true
# Checking out the pull request commit is intended here as we need to run the changed code tests.
ref: ${{ github.event.pull_request.head.sha }}
- name: Install node modules
run: yarn install --frozen-lockfile
- name: Setup Bazel
uses: angular/dev-infra/github-actions/bazel/setup@ba9b4487ced515e5b4d87edd681a3bd9792444d6
- name: Run tests in Saucelabs
run: ./scripts/circleci/run-saucelabs-tests.sh

0 comments on commit d6fa1b2

Please sign in to comment.