Skip to content

Commit

Permalink
ci: use manual chrome installation
Browse files Browse the repository at this point in the history
  • Loading branch information
tharropoulos committed Jan 16, 2025
1 parent 6c20e09 commit 6e0ba03
Showing 1 changed file with 27 additions and 9 deletions.
36 changes: 27 additions & 9 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,37 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
node-version: 18
cache: npm

- uses: browser-actions/setup-chrome@v1
id: setup-chrome
with:
chrome-version: stable
install-dependencies: true
- name: Install Puppeteer dependencies
run: |
sudo apt-get update
sudo apt install -y --no-install-recommends \
libnss3 \
libdbus-1-3 \
libatk1.0-0 \
libasound2t64 \
libxrandr2 \
libxkbcommon-dev \
libxfixes3 \
libxcomposite1 \
libxdamage1 \
libgbm-dev \
libatk-bridge2.0-0 \
binutils \
libglib2.0-0 \
libgdk-pixbuf2.0-0 \
libgtk-3-0 \
libnss3-dev \
libxss-dev \
xvfb \
fonts-liberation \
libu2f-udev \
xdg-utils \
chromium-browser
- name: Install dependencies
run: npm ci
Expand All @@ -26,9 +46,7 @@ jobs:
run: npm run build

- name: Run tests
env:
CHROME_PATH: ${{ steps.setup-chrome.outputs.chrome-path }}
run: xvfb-run --auto-servernum npm test -- --ci --color
- run: npm test -- --ci --color

- uses: actions/upload-artifact@v3
if: always()
Expand Down

0 comments on commit 6e0ba03

Please sign in to comment.