-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (35 loc) · 1.09 KB
/
nodejs.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
name: Lint & Test
on:
- push
jobs:
linting:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
steps:
# Check-out repository under GitHub workspace
# https://github.com/actions/checkout
- uses: actions/checkout@v2
# Step's name
- name: Use Node.js ${{ matrix.node-version }}
# Configures the node version used on GitHub-hosted runners
# https://github.com/actions/setup-node
uses: actions/setup-node@v2
# The Node.js version to configure
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: make install
- run: make lint
- run: make test
- name: Test & publish code coverage
# Publish code coverage on Code Climate
# https://github.com/paambaati/codeclimate-action
uses: paambaati/[email protected]
# Add Code Climate secret key
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
with:
coverageCommand: make test-coverage
debug: true