From e083e229c9bbb30be48a0a4e152567d0463ae74a Mon Sep 17 00:00:00 2001 From: Niklas von Hertzen Date: Tue, 28 Jul 2020 23:07:29 +0800 Subject: [PATCH] Update ci.yml --- .github/workflows/ci.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2a61574..40edac5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,6 +11,7 @@ on: jobs: build: runs-on: ubuntu-latest + name: Build steps: - uses: actions/checkout@v2 - uses: actions/setup-node@v1 @@ -40,3 +41,20 @@ jobs: with: name: build path: build + + test: + runs-on: ubuntu-latest + name: Test + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: 12 + - name: Npm install + run: npm ci + - name: Build + run: npm run build + - name: Lint + run: npm run lint + - name: Unit tests + run: npm run unittest