-
Notifications
You must be signed in to change notification settings - Fork 6
61 lines (49 loc) · 1.18 KB
/
test.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
name: Tests
on:
push:
pull_request:
types:
- opened
- synchronize
- reopened
- ready_for_review
- converted_to_draft
branches:
- main
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version:
- 14.x
- 16.x
- 18.x
os:
- ubuntu-latest
steps:
- name: ⬇️ Checking out ${{ github.ref_name }}
uses: actions/checkout@v3
- name: ⎔ Using Node.js ${{ matrix.node-version }} on ${{ matrix.os }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm i -g npm@8
- run: npm -v
- name: 📥 Install dependencies
run: npm install
- name: 🧹 Run the linter
run: npm run test:lint
- name: 🔤 Check spelling
run: npm run test:spelling
- name: 🔎 Check the Typescript types
run: npm run test:types
- name: 👟 Run tests
run: |
npm run test:unit
npm run test:unit:build