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 7f12707 commit b8edf98
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions .github/workflows/npm-publish-github-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,23 +26,19 @@ jobs:
with:
node-version: 18

- name: Setup Headless Chrome
- name: Setup XVFB and 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
sudo apt-get update -y
sudo apt-get install -y xvfb chromium-browser
sudo Xvfb :99 -ac &
export DISPLAY=:99
export CHROME_BIN=chromium-browser
export DISPLAY=:99.0
- run: npm ci
- run: npm run test:vitest
env:
CHROME_BIN: chromium-browser
DISPLAY: :99

package:
needs: test
Expand Down

0 comments on commit b8edf98

Please sign in to comment.