-
Notifications
You must be signed in to change notification settings - Fork 3
39 lines (33 loc) · 926 Bytes
/
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
name: Node CI
on:
status:
check_suite:
types: [completed]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [8.x, 10.x, 12.x]
steps:
- name: Wait for check to succeed
uses: fountainhead/[email protected]
id: wait-for-build
with:
token: ${{ secrets.GITHUB_TOKEN }}
checkName: netlify
ref: ${{ github.event.pull_request.head.sha || github.sha }}
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
if: steps.wait-for-build.outputs.conclusion == 'success'
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: npm install, build, and test
if: steps.wait-for-build.outputs.conclusion == 'success'
run: |
npm install
npm run build --if-present
npm test
env:
CI: true