Collect long animation frames (LoAF) #464
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: lux.js integration tests | |
on: | |
pull_request: | |
push: | |
branches: [ main ] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Install dependencies | |
run: npm ci | |
- name: Build lux.js | |
run: npm run build | |
- name: Install xvfb | |
uses: awalsh128/cache-apt-pkgs-action@latest | |
with: | |
packages: xvfb x11-xserver-utils | |
version: 1.0 | |
- name: Install Playwright Browsers | |
run: npx playwright install --with-deps | |
- name: Run Playwright tests | |
run: xvfb-run npm run test:e2e |