-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (32 loc) · 911 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
# This is a basic workflow to help you get started with Actions
name: CI
on: [push, pull_request]
jobs:
test-coverage:
name: Test on Node.js Latest
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Use Node.js latest
uses: actions/setup-node@v2.4.1
with:
node-version: "15"
- name: Install dependencies
run: npm install
- name: Generate coverage report
run: npm run test-coverage
- name: Upload coverage report
uses: codecov/codecov-action@v2.1.0
with:
token: ${{ secrets.CODECOV }}
test-node-12:
name: Test on Node.js v12
runs-on: ubuntu-latest
steps:
- name: Checkout codd
uses: actions/checkout@v2
- name: Use Node.js v12
uses: actions/setup-node@v2.4.1
with:
node-version: "12"