chore(actions): split lint and test jobs

This commit is contained in:
陈嘉涵 2019-12-19 15:51:06 +08:00
parent 6f6b72bc95
commit 0fb1183cde

View File

@ -3,7 +3,7 @@ name: Node CI
on: [push, pull_request]
jobs:
run:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
@ -17,6 +17,17 @@ jobs:
- name: Run linter
run: npm run lint
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: '12.x'
- name: Install dependencies
uses: bahmutov/npm-install@v1
- name: Run test cases
run: npm test