Skip to content

Commit 9f0ffaf

Browse files
committed
ci: enable browser testing again
1 parent 49084d3 commit 9f0ffaf

File tree

4 files changed

+855
-79
lines changed

4 files changed

+855
-79
lines changed

.github/workflows/verify-build.yml

Lines changed: 49 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
- name: lint
4848
run: pnpm lint
4949

50-
test:
50+
test-chrome:
5151
runs-on: ubuntu-latest
5252
steps:
5353
- name: Checkout
@@ -63,14 +63,61 @@ jobs:
6363
- name: install
6464
run: pnpm install --frozen-lockfile
6565

66+
- name: Install Playwright Browsers
67+
run: npx playwright install chromium
68+
6669
- name: test
67-
run: pnpm test
70+
run: pnpm test --browsers=chromiumHeadless
6871

6972
- name: Upload coverage reports to Codecov
7073
uses: codecov/codecov-action@v5
7174
env:
7275
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
7376

77+
test-firefox:
78+
runs-on: ubuntu-latest
79+
steps:
80+
- name: Checkout
81+
uses: actions/checkout@v5
82+
with:
83+
ref: refs/pull/${{ github.event.pull_request.number }}/merge
84+
85+
- uses: pnpm/action-setup@v4
86+
name: Install pnpm
87+
with:
88+
run_install: false
89+
90+
- name: install
91+
run: pnpm install --frozen-lockfile
92+
93+
- name: Install Playwright Browsers
94+
run: npx playwright install firefox
95+
96+
- name: test
97+
run: pnpm test --browsers=firefoxHeadless
98+
99+
test-safari:
100+
runs-on: ubuntu-latest
101+
steps:
102+
- name: Checkout
103+
uses: actions/checkout@v5
104+
with:
105+
ref: refs/pull/${{ github.event.pull_request.number }}/merge
106+
107+
- uses: pnpm/action-setup@v4
108+
name: Install pnpm
109+
with:
110+
run_install: false
111+
112+
- name: install
113+
run: pnpm install --frozen-lockfile
114+
115+
- name: Install Playwright Browsers
116+
run: npx playwright install webkit --with-deps
117+
118+
- name: test
119+
run: pnpm test --browsers=webkitHeadless
120+
74121
prettier:
75122
runs-on: ubuntu-latest
76123
steps:

libs/angular-ecmascript-intl/package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,18 @@
2828
"test": "ng test"
2929
},
3030
"devDependencies": {
31-
"@angular/cli": "21.0.0-rc.1",
31+
"@angular/build": "21.0.0-rc.3",
32+
"@angular/cli": "21.0.0-rc.3",
3233
"@angular/common": "21.0.0-rc.1",
3334
"@angular/core": "21.0.0-rc.1",
3435
"@angular/platform-browser": "21.0.0-rc.1",
36+
"@vitest/browser-playwright": "^4.0.0",
3537
"@vitest/coverage-v8": "^4.0.0",
3638
"cpy-cli": "^6.0.0",
3739
"dayjs": "^1.11.13",
3840
"jsdom": "^27.0.0",
3941
"ng-packagr": "21.0.0-rc.0",
42+
"playwright": "^1.56.1",
4043
"vitest": "^4.0.0"
4144
},
4245
"sideEffects": false,

0 commit comments

Comments
 (0)