Skip to content

Commit 6a7b3b4

Browse files
ygj6gmsa
andauthored
Add the CI configuration file build-test.yml for the test (#563)
Co-authored-by: Gustavo Santos <[email protected]>
1 parent 6c110a9 commit 6a7b3b4

File tree

2 files changed

+33
-7
lines changed

2 files changed

+33
-7
lines changed

.github/workflows/build-test.yml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Build and Test
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
14+
strategy:
15+
matrix:
16+
node-version: [10.x, 12.x, 14.x, 15.x]
17+
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
18+
19+
steps:
20+
- uses: actions/checkout@v2
21+
- name: Use Node.js ${{ matrix.node-version }}
22+
uses: actions/setup-node@v1
23+
with:
24+
node-version: ${{ matrix.node-version }}
25+
- name: Install dependency
26+
run: yarn
27+
- name: Lint check
28+
run: yarn lint
29+
- name: Build
30+
run: yarn build
31+
- name: Unit test
32+
run: yarn test:unit

.github/workflows/vuepress-deploy.yml

+1-7
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build and Deploy vuepress
1+
name: Deploy vuepress website
22
on:
33
push:
44
branches:
@@ -22,9 +22,3 @@ jobs:
2222
TARGET_BRANCH: gh-pages
2323
BUILD_SCRIPT: cd website && yarn && yarn build
2424
BUILD_DIR: public
25-
26-
- name: test:unit
27-
run: |
28-
yarn
29-
yarn test:unit
30-
yarn test:cover

0 commit comments

Comments
 (0)