-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
45 lines (36 loc) · 1012 Bytes
/
build.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
name: Build
on: [push, pull_request]
jobs:
coverage:
runs-on: ubuntu-latest
name: Code Climate Coverage
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Installing Dependencies
run: npm ci
- name: Collecting Coverage
uses: paambaati/codeclimate-action@v2.6.0
env:
CC_TEST_REPORTER_ID: ${{ secrets.CODE_CLIMATE_TOKEN }}
with:
coverageCommand: npm run coverage
coverageLocations: |
${{github.workspace}}/coverage/lcov.info:lcov
build:
runs-on: ubuntu-latest
strategy:
matrix:
node: ['14', '12', '10', '8']
name: Node ${{ matrix.node }}
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Installing Dependencies
run: npm ci
- name: Linting Codebase
run: npm run lint
- name: Unit Testing
run: npm run test
- name: Building Artefacts
run: npm run build