Skip to content

Commit 214d121

Browse files
committed
feat: added github action
1 parent 4fd87d2 commit 214d121

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/ci.yaml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: WePY CI Build
2+
3+
on:
4+
push:
5+
branches:
6+
- 2.0.x
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
strategy:
11+
matrix:
12+
node-version: [8.x, 10.x]
13+
steps:
14+
- uses: actions/checkout@v2
15+
- name: Use Node.js ${{ matrix.node-version }}
16+
uses: actions/setup-node@v1
17+
with:
18+
node-version: ${{ matrix.node-version }}
19+
- run: npm install
20+
- run: npm run bootstrap
21+
- run: npm run test
22+
- run: npm run bootstrap:prod
23+
- run: bash ./scripts/gen.sh
24+
- name: Coverage Report
25+
run: |
26+
npm install coveralls && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage
27+
env:
28+
CI: true

0 commit comments

Comments
 (0)