From bf028677a30ab7d46f83ec5c0377842a40f93973 Mon Sep 17 00:00:00 2001 From: Lucas Gelfond Date: Mon, 23 Dec 2024 17:03:50 -0800 Subject: [PATCH] don't wait on server in CI --- .github/workflows/CI.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 51e9d32..72cafb5 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -93,6 +93,8 @@ jobs: uses: browser-actions/setup-chrome@latest with: 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 run: | sudo apt-get update @@ -128,9 +130,6 @@ jobs: libxss1 \ libxtst6 \ 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 env: CHROME_HEADLESS: 1 @@ -139,9 +138,6 @@ jobs: # Start test server with proper headers npm run serve & - # Wait for server to be ready - npx wait-on http://localhost:3000 - # Run tests with configured Chrome flags npx mocha-headless-chrome \ --args="$CHROME_FLAGS" \