From 0fb1183cde347d1a0fbe08ed5c193629c35af497 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=98=89=E6=B6=B5?= Date: Thu, 19 Dec 2019 15:51:06 +0800 Subject: [PATCH] chore(actions): split lint and test jobs --- .github/workflows/test.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2ca4dcfd9..90423ebd1 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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