-
Notifications
You must be signed in to change notification settings - Fork 114
50 lines (47 loc) · 1.23 KB
/
main.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
name: CI
on:
push:
branches:
- master
- releases/*
pull_request:
branches:
- '*'
env:
SNAPSHOT_SKIP_PRUNING: 1
jobs:
test:
name: Node.js ${{ matrix.node_version }} on ${{ matrix.os }}
concurrency:
group: ${{ github.workflow }}-build-${{ matrix.os }}-${{ matrix.node_version }}-${{ github.ref }}
cancel-in-progress: true
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
node_version: [8, 10, 12, 14, 16, 18, 20]
os:
- ubuntu-latest
- macos-latest
- windows-latest
steps:
- name: Setup repository
uses: actions/checkout@v3
- name: Setup environment
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node_version }}
- name: Install dependencies
run: npm install
- name: Compile sources
run: npm run compile
- name: Run Hygiene Checks
run: npm run lint
- name: Run unit tests
run: npm run test
- name: Run e2e tests (sync)
run: npm run test:e2e:sync
- name: Run e2e tests (async)
run: npm run test:e2e:async
- name: Run e2e tests (stream)
run: npm run test:e2e:stream