File tree Expand file tree Collapse file tree 1 file changed +14
-11
lines changed
Expand file tree Collapse file tree 1 file changed +14
-11
lines changed Original file line number Diff line number Diff line change @@ -24,17 +24,20 @@ jobs:
2424 with :
2525 node-version-file : ' .nvmrc'
2626 cache : ' npm'
27- - name : Configure npm to use Git Bash on Windows
28- if : runner.os == 'Windows'
29- run : npm config set shell "C:\\Program Files\\Git\\bin\\bash.exe"
30- shell : cmd # Run this command in cmd.exe to set npm config
31- - run : npm ci
32- - name : Run end-to-end tests (Linux)
33- if : runner.os == 'Linux'
34- run : xvfb-run npm run test:e2e
35- - name : Run end-to-end tests (Windows)
36- if : runner.os == 'Windows'
37- run : npm run test:e2e
27+ - name : Install Dependencies
28+ run : |
29+ if [ "${{ runner.os }}" = "Windows" ]; then
30+ "C:/Program Files/Git/bin/bash.exe" -c "npm ci"
31+ else
32+ npm ci
33+ fi
34+ - name : Run end-to-end tests
35+ run : |
36+ if [ "${{ runner.os }}" = "Windows" ]; then
37+ "C:/Program Files/Git/bin/bash.exe" -c "npm run test:e2e"
38+ else
39+ npm run test:e2e
40+ fi
3841 - name : Upload Screenshots as Artifact
3942 if : ${{ always() }}
4043 uses : actions/upload-artifact@v4
You can’t perform that action at this time.
0 commit comments