-
Notifications
You must be signed in to change notification settings - Fork 21
41 lines (39 loc) Β· 1.04 KB
/
node.js.yml
File metadata and controls
41 lines (39 loc) Β· 1.04 KB
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
name: Node.js CI
on: [push]
jobs:
test:
strategy:
matrix:
node-version: [14.x, 16.x]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Run ssh-agent
uses: webfactory/ssh-agent@v0.4.1
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@master
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm test
coverage:
needs: [ test ]
name: coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Run ssh-agent
uses: webfactory/ssh-agent@v0.4.1
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
- uses: actions/setup-node@master
with:
node-version: '14'
- run: npm ci
- uses: paambaati/codeclimate-action@v2.7.5
env:
CC_TEST_REPORTER_ID: ab6be7df89409a87a7e4a6096da9fb75b9200c2a3fecbe43da7fd63aec48dcc1
with:
coverageCommand: npm run cover