Skip to content

Commit 6a10373

Browse files
committed
Chore: add github actions
1 parent 704d808 commit 6a10373

File tree

4 files changed

+1317
-3017
lines changed

4 files changed

+1317
-3017
lines changed

.github/workflows/ci.yml

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Node.js CI
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
8+
jobs:
9+
test:
10+
strategy:
11+
matrix:
12+
node: [12.x, 14.x, 16.x]
13+
os: [ubuntu-latest]
14+
runs-on: ${{ matrix.os }}
15+
steps:
16+
- uses: actions/checkout@v2
17+
- name: Use Node.js ${{ matrix.node }}
18+
uses: actions/setup-node@v1
19+
with:
20+
node-version: ${{ matrix.node }}
21+
- run: npm install
22+
- run: npm test
23+
- name: Coveralls Parallel
24+
uses: coverallsapp/github-action@master
25+
with:
26+
github-token: ${{ secrets.github_token }}
27+
flag-name: run-${{ matrix.test_number }}
28+
parallel: true
29+
finish:
30+
runs-on: ubuntu-latest
31+
needs: test
32+
steps:
33+
- name: Coveralls
34+
uses: coverallsapp/github-action@master
35+
with:
36+
github-token: ${{ secrets.GITHUB_TOKEN }}
37+
parallel-finished: true
38+

.travis.yml

-11
This file was deleted.

0 commit comments

Comments
 (0)