Skip to content

Commit 2785e04

Browse files
committed
revert to previous run
1 parent ae10d97 commit 2785e04

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

.github/workflows/CI.yml

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,6 @@ jobs:
7979
uses: actions/setup-node@v2
8080
with:
8181
node-version: 18.x
82-
- name: Install Chrome
83-
uses: browser-actions/setup-chrome@latest
84-
with:
85-
chrome-version: stable
8682
- name: Cache dependencies
8783
id: cache-dependencies
8884
uses: actions/cache@v2
@@ -91,22 +87,28 @@ jobs:
9187
key: node-modules-${{ hashFiles('package-lock.json') }}
9288
restore-keys: |
9389
node-modules-
90+
- name: Install dependencies
91+
run: npm install
92+
- name: Install Chrome
93+
uses: browser-actions/setup-chrome@latest
94+
with:
95+
chrome-version: stable
9496
- name: Run tests
9597
env:
9698
CHROME_HEADLESS: 1
9799
CHROME_PATH: chrome
98100
CHROME_FLAGS: "--headless --disable-gpu --no-sandbox --enable-features=SharedArrayBuffer,CrossOriginIsolation"
99-
HEADERS: '{"Cross-Origin-Opener-Policy":"same-origin","Cross-Origin-Embedder-Policy":"require-corp","Cross-Origin-Resource-Policy":"cross-origin","Origin-Agent-Cluster":"?1"}'
101+
HEADERS: '{"Cross-Origin-Opener-Policy": "same-origin", "Cross-Origin-Embedder-Policy": "require-corp"}'
100102
run: |
101-
# Start test server with proper headers
102-
npm run serve -- --headers "${HEADERS}" &
103+
# Start test server with proper headers for all tests
104+
npm run serve -- --headers "$HEADERS" &
103105
104106
# Increase wait time to ensure server is ready
105107
sleep 15
106108
107109
# Verify headers and isolation status
108110
echo "Checking security headers and isolation status..."
109-
curl -I http://localhost:3000/tests/ffmpeg-core-st.test.html
111+
curl -v http://localhost:3000/tests/ffmpeg-core-st.test.html 2>&1 | grep -i "cross-origin"
110112
111113
# Run verification script first
112114
echo "Verifying browser environment..."
@@ -162,18 +164,18 @@ jobs:
162164
# Run the verification in Chrome
163165
echo "Verifying browser environment..."
164166
npx mocha-headless-chrome \
165-
--args="$CHROME_FLAGS --enable-features=SharedArrayBuffer,CrossOriginIsolation --disable-web-security --allow-insecure-localhost" \
167+
--args="$CHROME_FLAGS --enable-features=SharedArrayBuffer,CrossOriginIsolation" \
166168
-a no-sandbox \
167169
-f http://localhost:3000/verify-browser.html
168170
169171
# Run MT tests with verified configuration
170172
npx mocha-headless-chrome \
171-
--args="$CHROME_FLAGS --enable-features=SharedArrayBuffer,CrossOriginIsolation --disable-web-security --allow-insecure-localhost" \
173+
--args="$CHROME_FLAGS --enable-features=SharedArrayBuffer,CrossOriginIsolation" \
172174
-a no-sandbox \
173175
-f http://localhost:3000/tests/ffmpeg-core-mt.test.html 2>&1 | tee mt-core-test.log
174176
175177
npx mocha-headless-chrome \
176-
--args="$CHROME_FLAGS --enable-features=SharedArrayBuffer,CrossOriginIsolation --disable-web-security --allow-insecure-localhost" \
178+
--args="$CHROME_FLAGS --enable-features=SharedArrayBuffer,CrossOriginIsolation" \
177179
-a no-sandbox \
178180
-f http://localhost:3000/tests/ffmpeg-mt.test.html 2>&1 | tee mt-test.log
179181

0 commit comments

Comments
 (0)