-
Notifications
You must be signed in to change notification settings - Fork 148
59 lines (56 loc) · 1.48 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
52
53
54
55
56
57
58
59
name: CI
on:
push:
branches:
- main
pull_request:
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: ${{ matrix.friendlyName }} Node ${{matrix.nodeVersion}} ${{ matrix.arch }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
nodeVersion: [14, 16, 18]
arch: [x64]
os: [macos-11, windows-2019, ubuntu-22.04]
include:
- os: macos-11
friendlyName: macOS
- os: windows-2019
friendlyName: Windows
- os: windows-2019
friendlyName: Windows
nodeVersion: 16
arch: x86
npm_config_arch: ia32
- os: ubuntu-22.04
friendlyName: Linux
timeout-minutes: 10
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Install Node.js ${{ matrix.nodeVersion }} (${{ matrix.arch }})
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.nodeVersion }}
architecture: ${{ matrix.arch }}
- name: Install and build dependencies
run: yarn
env:
npm_config_arch: ${{ matrix.npm_config_arch }}
- name: Build
run: yarn build
- name: Lint
run: yarn is-it-pretty
- name: Reset safe.directory
run: git config --global --add safe.directory ""
shell: bash
- name: Test
run: yarn test
env:
TEST: 1