Nightwatch #265
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: Nightwatch | |
on: | |
push: | |
branches: [ "main" ] | |
workflow_dispatch: | |
schedule: | |
- cron: "0 */3 * * *" | |
jobs: | |
build: | |
runs-on: ubuntu-24.04 | |
strategy: | |
matrix: | |
node-version: [22.x] | |
steps: | |
- uses: actions/[email protected] | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/[email protected] | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'npm' | |
- uses: actions/[email protected] | |
with: | |
path: | | |
tests_output/ | |
vrt/ | |
vrt-report/ | |
key: ${{ runner.os }}-${{ matrix.node-version }}-nightwatch | |
- run: npm ci | |
- run: sudo apt install xvfb -y | |
- run: xvfb-run --auto-servernum npm test -- --env chrome | |
- name: Archive test results | |
if: always() | |
uses: actions/[email protected] | |
with: | |
name: test-reports | |
compression-level: 9 | |
path: | | |
tests_output/ | |
vrt/ | |
vrt-report/ |