Skip to content

Commit f558c90

Browse files
authored
added ci action
1 parent a8317f8 commit f558c90

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/ci.yml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# This is a basic workflow to help you get started with Actions
2+
3+
name: CI
4+
5+
on: [push, pull_request]
6+
jobs:
7+
test-coverage:
8+
name: Test on Node.js Latest
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout code
12+
uses: actions/checkout@v2
13+
- name: Use Node.js latest
14+
uses: actions/[email protected]
15+
with:
16+
node-version: "15"
17+
- name: Install dependencies
18+
run: npm install
19+
- name: Generate coverage report
20+
run: npm run test-coverage
21+
- name: Upload coverage report
22+
uses: codecov/[email protected]
23+
with:
24+
token: ${{ secrets.CODECOV }}
25+
test-node-12:
26+
name: Test on Node.js v12
27+
runs-on: ubuntu-latest
28+
steps:
29+
- name: Checkout codd
30+
uses: actions/checkout@v2
31+
- name: Use Node.js v12
32+
uses: actions/[email protected]
33+
with:
34+
node-version: "12"

0 commit comments

Comments
 (0)