Skip to content

Commit 6a38b86

Browse files
authored
test(angular): Add Angular next canary tests (#16431)
Add canary tests for the `@angular/*@next` packages. The tests are based on our `angular-20` e2e test app just like in our other canary tests, we manually install the preview versions of the packages and the run the app and the tests. closes #16379 closes #16365
1 parent 5c95df9 commit 6a38b86

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -886,6 +886,7 @@ jobs:
886886
- uses: pnpm/action-setup@v4
887887
with:
888888
version: 9.4.0
889+
# TODO: Remove this once the repo is bumped to 20.19.2 or higher
889890
- name: Set up Node for Angular 20
890891
if: matrix.test-application == 'angular-20'
891892
uses: actions/setup-node@v4

.github/workflows/canary.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@ jobs:
6969
fail-fast: false
7070
matrix:
7171
include:
72+
- test-application: 'angular-20'
73+
build-command: 'test:build-canary'
74+
label: 'angular-20 (next)'
7275
- test-application: 'create-react-app'
7376
build-command: 'test:build-canary'
7477
label: 'create-react-app (canary)'
@@ -123,8 +126,14 @@ jobs:
123126
- uses: pnpm/action-setup@v4
124127
with:
125128
version: 9.4.0
126-
129+
# TODO: Remove this once the repo is bumped to 20.19.2 or higher
130+
- name: Set up Node for Angular 20
131+
if: matrix.test-application == 'angular-20'
132+
uses: actions/setup-node@v4
133+
with:
134+
node-version: '20.19.2'
127135
- name: Set up Node
136+
if: matrix.test-application != 'angular-20'
128137
uses: actions/setup-node@v4
129138
with:
130139
node-version-file: 'dev-packages/e2e-tests/package.json'

dev-packages/e2e-tests/test-applications/angular-20/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"watch": "ng build --watch --configuration development",
1111
"test": "playwright test",
1212
"test:build": "pnpm install && pnpm build",
13+
"test:build-canary": "pnpm install && pnpm add @angular/animations@next @angular/common@next @angular/compiler@next @angular/core@next @angular/forms@next @angular/platform-browser@next @angular/platform-browser-dynamic@next @angular/router@next && pnpm add -D @angular-devkit/build-angular@next @angular/cli@next @angular/compiler-cli@next && pnpm build",
1314
"test:assert": "playwright test",
1415
"clean": "npx rimraf .angular node_modules pnpm-lock.yaml dist"
1516
},

0 commit comments

Comments
 (0)