Add github workflow

This commit is contained in:
Shuanglei Tao
2019-08-25 10:20:49 +08:00
parent 93b6c3f1e4
commit 01a2ce0725
2 changed files with 66 additions and 0 deletions

28
.github/workflows/frontend.yml vendored Normal file
View File

@@ -0,0 +1,28 @@
name: frontend
on:
push:
paths:
- "html/*"
pull_request:
paths:
- "html/*"
jobs:
build:
runs-on: ubuntu-16.04
strategy:
matrix:
node-version: [8.x, 10.x, 12.x]
steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: yarn install, check and build
run: |
cd html
yarn install
yarn run check
yarn run build