patch chrome path

This commit is contained in:
Lucas Gelfond 2024-12-23 17:19:19 -08:00
parent b1402b7698
commit 8e626681ce

View File

@ -99,10 +99,10 @@ jobs:
env: env:
CHROME_HEADLESS: 1 CHROME_HEADLESS: 1
CHROME_PATH: chrome 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: | run: |
# Start test server with proper headers for all tests # Start test server with proper headers for all tests
npm run serve -- --headers "$HEADERS" & npm run serve &
# Wait for server to start # Wait for server to start
sleep 5 sleep 5
@ -111,23 +111,19 @@ jobs:
npx mocha-headless-chrome \ npx mocha-headless-chrome \
--args="$CHROME_FLAGS" \ --args="$CHROME_FLAGS" \
-a no-sandbox \ -a no-sandbox \
--chrome-path="$(which chrome)" \
-f http://localhost:3000/tests/ffmpeg-core-mt.test.html -f http://localhost:3000/tests/ffmpeg-core-mt.test.html
npx mocha-headless-chrome \ npx mocha-headless-chrome \
--args="$CHROME_FLAGS" \ --args="$CHROME_FLAGS" \
-a no-sandbox \ -a no-sandbox \
--chrome-path="$(which chrome)" \
-f http://localhost:3000/tests/ffmpeg-core-st.test.html -f http://localhost:3000/tests/ffmpeg-core-st.test.html
npx mocha-headless-chrome \ npx mocha-headless-chrome \
--args="$CHROME_FLAGS" \ --args="$CHROME_FLAGS" \
-a no-sandbox \ -a no-sandbox \
--chrome-path="$(which chrome)" \
-f http://localhost:3000/tests/ffmpeg-mt.test.html -f http://localhost:3000/tests/ffmpeg-mt.test.html
npx mocha-headless-chrome \ npx mocha-headless-chrome \
--args="$CHROME_FLAGS" \ --args="$CHROME_FLAGS" \
-a no-sandbox \ -a no-sandbox \
--chrome-path="$(which chrome)" \
-f http://localhost:3000/tests/ffmpeg-st.test.html -f http://localhost:3000/tests/ffmpeg-st.test.html