-
Notifications
You must be signed in to change notification settings - Fork 58
60 lines (52 loc) · 1.66 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
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Node CI
on:
push:
branches: [ master, 6.x, 5.x, 4.x, 3.x ]
pull_request:
branches: [ master, 6.x, 5.x, 4.x, 3.x ]
jobs:
build:
strategy:
fail-fast: false
matrix:
node-version: [ 14.18.0, 14.x, 16.x, 18.x, 20.x ]
platform:
- os: ubuntu-latest
shell: bash
- os: windows-latest
shell: powershell
python-version: [ 3.7 ]
vs-version: [ 15.0 ]
runs-on: ${{ matrix.platform.os }}
defaults:
run:
shell: ${{ matrix.platform.shell }}
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
env:
PYTHON_VERSION: ${{ matrix.python-version }}
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Set Windows environment
if: matrix.os == 'windows-latest'
uses: microsoft/setup-msbuild@v1.0.3
with:
vs-version: ${{ matrix.vs-version }}
- name: Install dependencies
run: npm i
- name: Run CI
run: npm run ci
env:
NODE_OPTIONS: --max_old_space_size=6144
- name: Code Coverage
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}