File tree 1 file changed +2
-6
lines changed
1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change 93
93
uses : browser-actions/setup-chrome@latest
94
94
with :
95
95
chrome-version : stable
96
+ env :
97
+ CHROME_FLAGS : " --enable-features=SharedArrayBuffer,CrossOriginIsolation --enable-experimental-web-platform-features --cross-origin-isolated --allow-file-access-from-files --disable-web-security --allow-insecure-localhost --no-sandbox --disable-setuid-sandbox --enable-unsafe-webgpu --disable-gpu-sandbox"
96
98
- name : Install Chrome dependencies
97
99
run : |
98
100
sudo apt-get update
@@ -128,9 +130,6 @@ jobs:
128
130
libxss1 \
129
131
libxtst6 \
130
132
libgbm1
131
- - name : Set Chrome flags
132
- run : |
133
- echo "CHROME_FLAGS=--enable-features=SharedArrayBuffer,CrossOriginIsolation --enable-experimental-web-platform-features --cross-origin-isolated --allow-file-access-from-files --disable-web-security --allow-insecure-localhost --no-sandbox --disable-setuid-sandbox --enable-unsafe-webgpu --disable-gpu-sandbox" >> $GITHUB_ENV
134
133
- name : Run tests
135
134
env :
136
135
CHROME_HEADLESS : 1
@@ -139,9 +138,6 @@ jobs:
139
138
# Start test server with proper headers
140
139
npm run serve &
141
140
142
- # Wait for server to be ready
143
- npx wait-on http://localhost:3000
144
-
145
141
# Run tests with configured Chrome flags
146
142
npx mocha-headless-chrome \
147
143
--args="$CHROME_FLAGS" \
You can’t perform that action at this time.
0 commit comments