-
Notifications
You must be signed in to change notification settings - Fork 11
29 lines (28 loc) · 861 Bytes
/
ci.yml
File metadata and controls
29 lines (28 loc) · 861 Bytes
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
name: Continuous Integration
on: [ pull_request ]
jobs:
test:
name: Build & Test
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: '16'
- name: Install dependencies
run: npm ci
- name: Build the project
run: npm run build
# - name: Run tests and do code coverage check
# run: npm run test:coverage
- name: Upload code coverage report to workflow as an artifact
uses: actions/upload-artifact@v2
with:
name: istanbul-code-coverage.zip
path: coverage
- name: Upload code coverage report to codecov.io and comment in pull request
uses: codecov/codecov-action@v1