Skip to content

Commit 234699c

Browse files
committed
Fixing npm ci (DH-18428-4)
1 parent d848cdf commit 234699c

File tree

1 file changed

+14
-11
lines changed

1 file changed

+14
-11
lines changed

.github/workflows/e2e.yml

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)