Skip to content

Commit 3850f91

Browse files
authored
Add initial Github action
Add Github action to build and test for each PR and pushed commit.
1 parent f1e520c commit 3850f91

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/ci.yaml

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: CI
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
ci:
7+
runs-on: ${{ matrix.os }}
8+
strategy:
9+
fail-fast: false
10+
matrix:
11+
os:
12+
- ubuntu-latest
13+
- macos-latest
14+
- windows-latest
15+
name: Run on ${{ matrix.os }}
16+
steps:
17+
- uses: actions/checkout@v2
18+
- name: Setup node
19+
uses: actions/setup-node@v2
20+
with:
21+
node-version: 12
22+
- name: Build
23+
run: |
24+
npm ci
25+
npm run init
26+
npm run build
27+
npm run bundle
28+
- name: Test
29+
run: |
30+
npm test
31+
npm run test-cov
32+
npm run check-format
33+
#- name: Merge Reports
34+
# if: success()
35+
# run: 'npm run merge-report && cat coverage/lcov.info'
36+
#- name: Upload Report
37+
# if: success()
38+
# uses: coverallsapp/github-action@master
39+
# with:
40+
# github-token: ${{ secrets.coverall_token }}

0 commit comments

Comments
 (0)