ci: fix node version of github action (#19216)

This commit is contained in:
只捱宅 2019-10-15 12:27:05 +08:00 committed by GitHub
parent 6db3711876
commit bae2752be3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 19 deletions

View File

@ -1,19 +0,0 @@
name: Node CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Use Node.js 10.x
uses: actions/setup-node@v1
with:
version: 10.x
- name: npm install, build, and test
run: |
npm install
npm run test-all

18
.github/workflows/test.yml vendored Normal file
View File

@ -0,0 +1,18 @@
name: test
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@master
- name: install
run: npm install
- name: test
run: npm run test-all