don't wait on server in CI
This commit is contained in:
parent
bbc7fef901
commit
bf028677a3
8
.github/workflows/CI.yml
vendored
8
.github/workflows/CI.yml
vendored
@ -93,6 +93,8 @@ jobs:
|
|||||||
uses: browser-actions/setup-chrome@latest
|
uses: browser-actions/setup-chrome@latest
|
||||||
with:
|
with:
|
||||||
chrome-version: stable
|
chrome-version: stable
|
||||||
|
env:
|
||||||
|
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"
|
||||||
- name: Install Chrome dependencies
|
- name: Install Chrome dependencies
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
@ -128,9 +130,6 @@ jobs:
|
|||||||
libxss1 \
|
libxss1 \
|
||||||
libxtst6 \
|
libxtst6 \
|
||||||
libgbm1
|
libgbm1
|
||||||
- name: Set Chrome flags
|
|
||||||
run: |
|
|
||||||
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
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
env:
|
env:
|
||||||
CHROME_HEADLESS: 1
|
CHROME_HEADLESS: 1
|
||||||
@ -139,9 +138,6 @@ jobs:
|
|||||||
# Start test server with proper headers
|
# Start test server with proper headers
|
||||||
npm run serve &
|
npm run serve &
|
||||||
|
|
||||||
# Wait for server to be ready
|
|
||||||
npx wait-on http://localhost:3000
|
|
||||||
|
|
||||||
# Run tests with configured Chrome flags
|
# Run tests with configured Chrome flags
|
||||||
npx mocha-headless-chrome \
|
npx mocha-headless-chrome \
|
||||||
--args="$CHROME_FLAGS" \
|
--args="$CHROME_FLAGS" \
|
||||||
|
Loading…
Reference in New Issue
Block a user