Skip to content

Commit c40d574

Browse files
committed
🚀 Create GitHub Actions workflow
1 parent b9b5531 commit c40d574

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

‎.github/workflows/ci.yml‎

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: CI
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
node: [8, 10, 12]
11+
name: Node ${{ matrix.node }}
12+
steps:
13+
- uses: actions/checkout@master
14+
- name: Use Node.js
15+
uses: actions/setup-node@v1
16+
with:
17+
node-version: ${{ matrix.node }}
18+
- name: Install dependencies
19+
run: npm install
20+
- name: Run tests
21+
run: npm test
22+
- name: Coveralls
23+
uses: coverallsapp/github-action@master
24+
with:
25+
github-token: ${{ secrets.GITHUB_TOKEN }}
26+
path-to-lcov: ./build/lcov.info
27+
parallel: true
28+
- name: Coveralls Finished
29+
uses: coverallsapp/github-action@master
30+
with:
31+
github-token: ${{ secrets.GITHUB_TOKEN }}
32+
parallel-finished: true

0 commit comments

Comments
 (0)