Skip to content

Commit

Permalink
don't wait on server in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasgelfond committed Dec 24, 2024
1 parent bbc7fef commit bf02867
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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" \
Expand Down

0 comments on commit bf02867

Please sign in to comment.