Skip to content

Commit db7932c

Browse files
clydindgp1130
authored andcommitted
ci: partially move E2E tests to GHA
All E2E test runs are moved to Github Actions except: * Windows E2E * Snapshot E2E
1 parent a4dcfa9 commit db7932c

File tree

2 files changed

+26
-26
lines changed

2 files changed

+26
-26
lines changed

.circleci/dynamic_config.yml

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -321,31 +321,6 @@ workflows:
321321
requires:
322322
- setup
323323

324-
- e2e-tests:
325-
name: e2e-cli-<< matrix.subset >>
326-
nodeversion: *default_nodeversion_major
327-
matrix:
328-
parameters:
329-
subset: *all_e2e_subsets
330-
filters:
331-
branches:
332-
ignore:
333-
- main
334-
- /\d+\.\d+\.x/
335-
requires:
336-
- build
337-
338-
- e2e-tests:
339-
name: e2e-cli-node-<<matrix.nodeversion>>-<< matrix.subset >>
340-
matrix:
341-
alias: e2e-cli
342-
parameters:
343-
nodeversion: *all_nodeversion_major
344-
subset: *all_e2e_subsets
345-
requires:
346-
- build
347-
<<: *only_release_branches
348-
349324
- e2e-tests:
350325
name: e2e-snapshots-<< matrix.subset >>
351326
nodeversion: *default_nodeversion_major
@@ -380,4 +355,4 @@ workflows:
380355
<<: *only_builds_branches
381356
requires:
382357
- setup
383-
- e2e-cli
358+
- e2e-cli-win

.github/workflows/ci.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,3 +100,28 @@ jobs:
100100
- if: matrix.version != env.defaultVersion
101101
name: Run tests for non-default node version
102102
run: yarn bazel test --test_tag_filters=node18,-node18-broken //packages/...
103+
104+
e2e:
105+
strategy:
106+
matrix:
107+
os: [ubuntu-latest]
108+
node: [16, 18]
109+
subset: [npm, yarn, esbuild]
110+
shard: [0, 1, 2, 3]
111+
exclude:
112+
# Exclude Node.js v16 when running on a PR
113+
- node: ${{ github.event_name != 'pull_request' && 'none' || '16' }}
114+
runs-on: ${{ matrix.os }}
115+
steps:
116+
- name: Initialize environment
117+
uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@0109d498b0f6aae418ed4924a5e5c65695f0ac61
118+
with:
119+
fetch-depth: 1
120+
- name: Install node modules
121+
run: yarn install --frozen-lockfile
122+
- name: Setup Bazel
123+
uses: angular/dev-infra/github-actions/bazel/setup@0109d498b0f6aae418ed4924a5e5c65695f0ac61
124+
- name: Setup Bazel RBE
125+
uses: angular/dev-infra/github-actions/bazel/configure-remote@0109d498b0f6aae418ed4924a5e5c65695f0ac61
126+
- name: Run CLI E2E tests
127+
run: yarn bazel test --define=E2E_SHARD_TOTAL=4 --define=E2E_SHARD_INDEX=${{ matrix.shard }} --config=e2e //tests/legacy-cli:e2e.${{ matrix.subset }}_node${{ matrix.node }}

0 commit comments

Comments
 (0)