Skip to content

Commit 5730271

Browse files
authored
test: add testing for Firefox and Safari (#153)
1 parent f7137a1 commit 5730271

File tree

4 files changed

+55
-2
lines changed

4 files changed

+55
-2
lines changed

.github/workflows/verify-build.yml

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ jobs:
3737
- name: lint
3838
run: npm run lint
3939

40-
test:
41-
runs-on: ubuntu-20.04
40+
test-chrome:
41+
runs-on: ubuntu-latest
4242
steps:
4343
- name: Checkout
4444
uses: actions/checkout@v4
@@ -51,6 +51,34 @@ jobs:
5151
- name: test
5252
run: npm run test -- --watch=false --browsers=ChromeHeadless
5353

54+
test-firefox:
55+
runs-on: ubuntu-latest
56+
steps:
57+
- name: Checkout
58+
uses: actions/checkout@v4
59+
with:
60+
ref: ${{ github.event.pull_request.head.sha }}
61+
62+
- name: install
63+
run: npm ci
64+
65+
- name: test
66+
run: npm run test -- --watch=false --browsers=FirefoxHeadless
67+
68+
test-safari:
69+
runs-on: macos-latest
70+
steps:
71+
- name: Checkout
72+
uses: actions/checkout@v4
73+
with:
74+
ref: ${{ github.event.pull_request.head.sha }}
75+
76+
- name: install
77+
run: npm ci
78+
79+
- name: test
80+
run: npm run test -- --watch=false --browsers=SafariNative
81+
5482
prettier:
5583
runs-on: ubuntu-latest
5684
steps:

package-lock.json

Lines changed: 21 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,10 @@
6868
"karma": "^6.4.1",
6969
"karma-chrome-launcher": "~3.2.0",
7070
"karma-coverage": "^2.2.0",
71+
"karma-firefox-launcher": "^2.1.2",
7172
"karma-jasmine": "~5.1.0",
7273
"karma-jasmine-html-reporter": "^2.0.0",
74+
"karma-safarinative-launcher": "^1.1.0",
7375
"ng-packagr": "^16.0.0",
7476
"npm-run-all": "^4.1.5",
7577
"prettier": "^3.0.0",

projects/material-css-vars/karma.conf.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ module.exports = function (config) {
99
require("karma-jasmine"),
1010
require("karma-coverage"),
1111
require("karma-chrome-launcher"),
12+
require("karma-firefox-launcher"),
13+
require("karma-safarinative-launcher"),
1214
require("karma-jasmine-html-reporter"),
1315
require("@angular-devkit/build-angular/plugins/karma"),
1416
],

0 commit comments

Comments
 (0)