name: Test CI on: push: branches: [ "main" ] pull_request: branches: [ "main" ] jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: Set up Node.js uses: actions/setup-node@v4 with: node-version: 22 cache: 'npm' - name: Setup Chrome uses: browser-actions/setup-chrome@v2 id: setup-chrome with: install-dependencies: true - run: npm install - run: npm run build - name: Run headless test uses: coactions/setup-xvfb@v1 with: run: npm run test-travis env: CHROME_BIN: ${{ steps.setup-chrome.outputs.chrome-path }}