File tree Expand file tree Collapse file tree 1 file changed +32
-3
lines changed Expand file tree Collapse file tree 1 file changed +32
-3
lines changed Original file line number Diff line number Diff line change @@ -137,15 +137,44 @@ jobs:
137
137
with :
138
138
github-token : ' ${{ secrets.GITHUB_TOKEN }}'
139
139
140
- test-browser :
141
- name : Browser Tests on SauceLabs [${{ matrix.browser }}]
140
+ test-browser-local :
141
+ name : Browser Test
142
142
needs : smoke
143
143
runs-on : ubuntu-latest
144
144
timeout-minutes : 20
145
+ # Don't run forked 'pull_request' without saucelabs token
146
+ if : github.event_name == 'push' || !github.event.pull_request.head.repo.fork
147
+ steps :
148
+ - uses : actions/setup-node@v4
149
+ with :
150
+ node-version : lts/*
151
+ - uses : actions/checkout@v4
152
+ with :
153
+ persist-credentials : false
154
+ - name : ' Cache node_modules'
155
+ uses : actions/cache@v3
156
+ with :
157
+ path : ' ~/.npm'
158
+ # this key is different than above, since we are running scripts
159
+ # (builds, postinstall lifecycle hooks, etc.)
160
+ key : " ubuntu-latest-node-full-lts-${{ hashFiles('**/package-lock.json') }}"
161
+ - name : Install Dependencies
162
+ run : npm ci
163
+ - name : Run Browser Tests
164
+ run : npm start test.browser
165
+ env :
166
+ BROWSER : ChromeDebug
167
+
168
+ test-browser-saucelabs :
169
+ name : Browser Tests on SauceLabs [${{ matrix.browser }}]
170
+ needs :
171
+ - smoke
172
+ - test-browser-local
173
+ runs-on : ubuntu-latest
174
+ timeout-minutes : 20
145
175
strategy :
146
176
matrix :
147
177
browser :
148
- - ChromeDebug
149
178
- firefox@latest
150
179
- chrome@latest
151
180
- MicrosoftEdge@latest
You can’t perform that action at this time.
0 commit comments