-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (40 loc) · 980 Bytes
/
nightwatch.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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/