-
-
Notifications
You must be signed in to change notification settings - Fork 10
48 lines (48 loc) · 1.26 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
---
name: CI Check
on:
# Trigger the workflow on push or pull request,
# but only for the `master` branch
push:
branches:
- master
pull_request:
branches:
- master
jobs:
ci-check:
runs-on: ubuntu-latest
strategy:
matrix:
node-version:
# oldest supported
- 11.x
# current LTS
- 14.x
# Latest available
# - 15.x
name: Node v${{ matrix.node-version }} ${{ matrix.install-option }}
steps:
- uses: actions/checkout@v3
- name: Setting up Node.js v${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: install
run: |
npm ci
- name: lint
run: |
./scripts/npm_run_time.sh lint
- name: build
run: |
./scripts/npm_run_time.sh build
- name: test
run: |
./scripts/npm_run_time.sh test
npm run upload-code-coverage
- name: Push statistics to SeriesCI
# more info about `success` condition https://github.1git.demunity/t/how-to-implement-an-after-success-action/16919/8
if: ${{ success() }}
run: |
scripts/seriesci.sh ${{ secrets.SERIESCI_TOKEN }}