CI: add GitHub Actions

This commit is contained in:
liushuyu 2020-05-01 23:57:50 -06:00
parent 7d54dc1a78
commit 1482e6741b
1 changed files with 25 additions and 0 deletions

25
.github/workflows/nodejs.yml vendored Normal file
View File

@ -0,0 +1,25 @@
name: Node.js CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [13.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: yarn
- run: yarn build