Skip to content

Commit 97cc487

Browse files
committed
Add Auth Safari testing job
1 parent d1afeca commit 97cc487

File tree

1 file changed

+25
-2
lines changed

1 file changed

+25
-2
lines changed

.github/workflows/test-changed-auth.yml

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
name: Test Auth
1616

17-
on: pull_request
17+
on: push
1818

1919
env:
2020
# make chromedriver detect installed Chrome version and download the corresponding driver
@@ -99,6 +99,29 @@ jobs:
9999
- name: build
100100
run: yarn build:changed auth
101101
- name: Run tests on auth changed packages
102-
run: xvfb-run yarn test:changed auth
102+
run: yarn test:changed auth
103103
env:
104104
BROWSERS: 'Firefox'
105+
106+
test-safari:
107+
name: Test Auth on Safari if changed
108+
runs-on: macos-latest
109+
steps:
110+
- uses: actions/checkout@v4
111+
with:
112+
fetch-depth: 0
113+
- uses: actions/setup-node@v3
114+
with:
115+
node-version: 20.x
116+
- name: yarn install and build
117+
run: |
118+
cp config/ci.config.json config/project.json
119+
yarn
120+
- name: build
121+
run: yarn build:changed auth
122+
- name: Run browser tests
123+
# Since we're testing on Safari, we only need to run the browser tests
124+
run : |
125+
yarn test:changed auth
126+
env:
127+
BROWSERS: 'Safari'

0 commit comments

Comments
 (0)