Skip to content

Nightwatch

Nightwatch #242

Workflow file for this run

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/