Skip to content

Commit

Permalink
Try setup a headless chrome to resolve issues on CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
Layoric committed Oct 9, 2023
1 parent 1ff7fd8 commit 7f12707
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/npm-publish-github-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,22 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 18

- name: Setup Headless Chrome
run: |
sudo apt-get update
sudo apt-get install -yq --no-install-suggests --no-install-recommends \
chromium-browser \
libnss3 \
fonts-liberation \
libasound2 \
libgconf-2-4 \
libgbm1 \
libappindicator3-1 \
xdg-utils
export CHROME_BIN=chromium-browser
export DISPLAY=:99.0
- run: npm ci
- run: npm run test:vitest

Expand Down

0 comments on commit 7f12707

Please sign in to comment.