Skip to content

Commit

Permalink
ci: move saucelabs tests to GHA
Browse files Browse the repository at this point in the history
Migrate saucelabs tests to Github Action
  • Loading branch information
josephperrott committed Jul 20, 2023
1 parent 3cc6034 commit c73e873
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 24 deletions.
24 changes: 0 additions & 24 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -165,28 +165,6 @@ commands:
# must be part of a workflow definition in order to run for PRs and push builds.
# -----------------------------------------------------------------------------------------
jobs:
# ----------------------------------------------------------------------------
# Job that runs the unit tests on Saucelabs. The browsers that will be used
# to run the unit tests on Saucelabs are set in: test/browser-providers.js
# ----------------------------------------------------------------------------
tests_saucelabs:
<<: *job_defaults
resource_class: xlarge
environment:
SAUCE_USERNAME: 'angular-components'
SAUCE_ACCESS_KEY: '687f2bb5cacc-3bcb-5b64-8e8a-3825fc13'
# Note: This number should not be too high because otherwise we might run into
# a rate limit exception.
KARMA_PARALLEL_BROWSERS: 2
steps:
- checkout_and_rebase
- *restore_cache
- *setup_bazel_ci_config
- *yarn_install

- run: ./scripts/circleci/run-saucelabs-tests.sh
- *slack_notify_on_failure

# -------------------------------------------------------------------------------------------
# Job that builds all release packages. The built packages can be then used in the same
# workflow to publish snapshot builds.
Expand Down Expand Up @@ -430,8 +408,6 @@ workflows:
filters: *ignore_presubmit_branch_filter
- linker_jit_test:
filters: *ignore_presubmit_branch_filter
- tests_saucelabs:
filters: *ignore_presubmit_branch_filter
- build_release_packages:
filters: *ignore_presubmit_branch_filter
- upload_release_packages:
Expand Down
22 changes: 22 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -162,3 +162,25 @@ jobs:
run: yarn install --frozen-lockfile
- name: Run tests in browserstack
run: ./scripts/circleci/run-browserstack-tests.sh

saucelabs:
runs-on: ubuntu-latest
env:
SAUCE_USERNAME: ${{ vars.SAUCE_USERNAME }}
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}
# Note: This number should not be too high because otherwise we might run into
# a rate limit exception.
KARMA_PARALLEL_BROWSERS: 2
steps:
- name: Initialize environment
uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@45de46d9ba0e0689b7a846fd31ec9e241807ca71
with:
cache-node-modules: true
- name: Setup Bazel
uses: angular/dev-infra/github-actions/bazel/setup@45de46d9ba0e0689b7a846fd31ec9e241807ca71
- name: Setup Bazel RBE
uses: angular/dev-infra/github-actions/bazel/configure-remote@45de46d9ba0e0689b7a846fd31ec9e241807ca71
- name: Install node modules
run: yarn install --frozen-lockfile
- name: Run tests in saucelabs
run: ./scripts/circleci/run-saucelabs-tests.sh

0 comments on commit c73e873

Please sign in to comment.