-
Notifications
You must be signed in to change notification settings - Fork 2
51 lines (46 loc) · 1.19 KB
/
ci.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
46
47
48
49
50
51
name: Tests
on:
push:
pull_request:
env:
BROWSER_STACK_ACCESS_KEY: "${{ secrets.BROWSER_STACK_ACCESS_KEY }}"
BROWSER_STACK_USERNAME: "${{ secrets.BROWSER_STACK_USERNAME }}"
jobs:
test:
name: Node ${{ matrix.node }}
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [10, 12, 14, 16, 18, 20]
steps:
- uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- run: npm install
- run: npm test
test-targets:
name: ${{ matrix.targets.name }}
runs-on: ubuntu-latest
strategy:
matrix:
targets:
- name: "Lint"
target: "lint"
- name: "Documentation"
target: "test-docs"
- name: "Jest"
target: "test-jest"
- name: "Browser - IE11"
target: "test-browser-ie11"
- name: "Chrome Headless"
target: "test-headless"
steps:
- uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: "12"
- run: npm install
- run: npm run ${{ matrix.targets.target }}