Skip to content

Commit

Permalink
ci: move integration tests to GHA
Browse files Browse the repository at this point in the history
Migrate integration tests to Github Action
  • Loading branch information
josephperrott committed Jul 20, 2023
1 parent 0de6875 commit d30b9c7
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 26 deletions.
26 changes: 0 additions & 26 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -368,30 +368,6 @@ jobs:
- run: bazel test --build_tag_filters=-e2e --test_tag_filters=-e2e --build_tests_only -- src/...
- *slack_notify_on_failure

# ----------------------------------------------------------------------------
# Job that runs all Bazel integration tests.
# ----------------------------------------------------------------------------
integration_tests:
<<: *job_defaults
resource_class: xlarge
environment:
GCP_DECRYPT_TOKEN: *gcp_decrypt_token
steps:
- checkout_and_rebase
- *restore_cache
- *setup_bazel_ci_config
- *setup_bazel_remote_execution
- *yarn_install
- *setup_bazel_binary

- run: yarn integration-tests
- run:
name: Running size integration tests (failures are reported in Slack only).
command: |
# If the size integration tests fail, report the failure to a dedicated #components-ci-size-tracking Slack channel.
yarn integration-tests:size-test || yarn ci-notify-slack-failure components-ci-size-tracking
- *slack_notify_on_failure

# ----------------------------------------------------------------------------
# Job that runs the AOT linker tests.
# ----------------------------------------------------------------------------
Expand Down Expand Up @@ -488,8 +464,6 @@ workflows:

default_workflow:
jobs:
- integration_tests:
filters: *ignore_presubmit_branch_filter
- linker_aot_test:
filters: *ignore_presubmit_branch_filter
- linker_jit_test:
Expand Down
21 changes: 21 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,3 +106,24 @@ jobs:
# Exclude release and docs packages here as those will be built within
# the "build_release_packages" and "publish_snapshots" jobs.
run: yarn bazel build --build_tag_filters=-docs-package,-release-package -- src/...

integration:
runs-on: ubuntu-latest
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 integration tests
run: yarn integration-tests\
# TODO: Set up slack notifications
# - name: Running size integration tests (failures are reported in Slack only).
# run: |
# If the size integration tests fail, report the failure to a dedicated #components-ci-size-tracking Slack channel.
# yarn integration-tests:size-test || yarn ci-notify-slack-failure components-ci-size-tracking

0 comments on commit d30b9c7

Please sign in to comment.