-
Notifications
You must be signed in to change notification settings - Fork 0
72 lines (57 loc) · 2.17 KB
/
CI.yaml
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: CI
on:
- push
- pull_request
jobs:
main-test:
strategy:
fail-fast: false
matrix:
include:
- name: "Linux: Node 20"
# Includes firefox, chromium, microsoft-edge
# https://github.com/actions/runner-images/blob/ubuntu24/20241215.1/images/ubuntu/Ubuntu2404-Readme.md
os: ubuntu-24.04
node: 20.x
- name: "Linux: Node 22"
os: ubuntu-24.04
node: 22.x
# Includes Firefox, Google Chrome, Microsoft Edge
# https://github.com/actions/runner-images/blob/win22/20241211.1/images/windows/Windows2022-Readme.md
- name: "Windows: Node 20"
os: windows-latest
node: 20.x
# Includes Firefox, Google Chrome, Microsoft Edge, Safari
# https://github.com/actions/runner-images/blob/macos-13/20241216.479/images/macos/macos-13-Readme.md
- name: "macOS: Node 20"
os: macos-13
node: 20.x
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
env:
FORCE_COLOR: "1"
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
if: ${{ runner.os != 'Windows' }}
with:
path: |
~/.npm
key: ${{ runner.os }}-${{ hashFiles('**/package.json') }}
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- run: npm install
- run: npm test
- name: Test local browsers (Firefox)
run: node bin/qtap.js -b firefox -r none -v --timeout 60 test/fixtures/pass.html
- name: Test local browsers (Chrome)
run: node bin/qtap.js -b chrome -r none -v --timeout 60 test/fixtures/pass.html
- name: Test local browsers (Chromium)
run: node bin/qtap.js -b chromium -r none -v --timeout 60 test/fixtures/pass.html
- name: Test local browsers (Edge)
run: node bin/qtap.js -b edge -r none -v --timeout 60 test/fixtures/pass.html
- name: Test local browsers (Safari)
if: ${{ runner.os == 'macOS' }}
run: node bin/qtap.js -b safari -r none -v --timeout 60 test/fixtures/pass.html