-
Notifications
You must be signed in to change notification settings - Fork 10
77 lines (72 loc) · 1.88 KB
/
build.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: Build
on:
pull_request:
push:
branches:
- main
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout the project
uses: actions/checkout@v2
- name: Use Node.js 18
uses: actions/setup-node@v1
with:
node-version: 18.x
- name: Install dependencies
run: npm i
- name: Run lint step
run: npm run lint
test-node:
name: Test on Node.js
runs-on: ubuntu-latest
strategy:
matrix:
node-version:
- 18.x # to be removed 2025-04-30
- 20.x # to be removed 2026-04-30
- 21.x # to be removed 2024-06-01
steps:
- name: Checkout the project
uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm i
- name: Run Node.js Tests
run: npm run test:node
test-linux-browsers:
name: Test on Linux Firefox & Chrome
runs-on: ubuntu-latest
steps:
- name: Checkout the project
uses: actions/checkout@v2
- name: Use Node.js 18
uses: actions/setup-node@v1
with:
node-version: 18.x
- name: Install dependencies
run: npm i
- name: Run Node.js Tests
run: npm run test:browser
- name: Upload coverage
if: success()
uses: codecov/codecov-action@v1
test-windows-browsers:
name: Test on Windows Firefox, Chrome & Edge
runs-on: windows-latest
steps:
- name: Checkout the project
uses: actions/checkout@v2
- name: Use Node.js 18
uses: actions/setup-node@v1
with:
node-version: 18.x
- name: Install dependencies
run: npm i
- name: Run Node.js Tests
run: npm run test:browser