From 042fbbe5da95ade5c7acec608beb4280da539c06 Mon Sep 17 00:00:00 2001 From: Phillip Johnsen Date: Sat, 30 Jan 2021 13:07:03 +0100 Subject: [PATCH] Add separate CI job for linting No need for X amount of different Node.js version to all run the linting as part of their CI rutine. Easier to just run that once, completely separate from the unit tests. --- .github/workflows/verify.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/verify.yml b/.github/workflows/verify.yml index 6406f5e..b397eda 100644 --- a/.github/workflows/verify.yml +++ b/.github/workflows/verify.yml @@ -3,6 +3,18 @@ name: Verify changes on: [push, pull_request] jobs: + lint: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Setup Node.js + uses: actions/setup-node@v1 + with: + node-version: 14.x + - run: npm install + - run: npm run test-lint + tests: runs-on: ubuntu-latest @@ -21,7 +33,7 @@ jobs: - name: npm install and test run: | npm install - npm test + npm run test-unit tests-on-legacy: runs-on: ubuntu-latest