Skip to content

Commit

Permalink
patch chrome path
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasgelfond committed Dec 24, 2024
1 parent b1402b7 commit 8e62668
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,10 @@ jobs:
env:
CHROME_HEADLESS: 1
CHROME_PATH: chrome
HEADERS: '{"Cross-Origin-Opener-Policy": "same-origin", "Cross-Origin-Embedder-Policy": "require-corp"}'
HEADERS: '{"Cross-Origin-Opener-Policy": "same-origin", "Cross-Origin-Embedder-Policy": "require-corp", "Cross-Origin-Resource-Policy": "cross-origin", "Origin-Agent-Cluster": "?1"}'
run: |
# Start test server with proper headers for all tests
npm run serve -- --headers "$HEADERS" &
npm run serve &
# Wait for server to start
sleep 5
Expand All @@ -111,23 +111,19 @@ jobs:
npx mocha-headless-chrome \
--args="$CHROME_FLAGS" \
-a no-sandbox \
--chrome-path="$(which chrome)" \
-f http://localhost:3000/tests/ffmpeg-core-mt.test.html
npx mocha-headless-chrome \
--args="$CHROME_FLAGS" \
-a no-sandbox \
--chrome-path="$(which chrome)" \
-f http://localhost:3000/tests/ffmpeg-core-st.test.html
npx mocha-headless-chrome \
--args="$CHROME_FLAGS" \
-a no-sandbox \
--chrome-path="$(which chrome)" \
-f http://localhost:3000/tests/ffmpeg-mt.test.html
npx mocha-headless-chrome \
--args="$CHROME_FLAGS" \
-a no-sandbox \
--chrome-path="$(which chrome)" \
-f http://localhost:3000/tests/ffmpeg-st.test.html

0 comments on commit 8e62668

Please sign in to comment.