diff --git a/.circleci/config.yml b/.circleci/config.yml index 1bfa1797e13f..aa58b390f484 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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. @@ -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: diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d16b7a3ec365..82cb149f2f84 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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