From 9aad36a1b52089908346e1d339fc2fda04052e94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bence=20D=C3=A1nyi?= Date: Wed, 7 Oct 2020 23:53:32 +0200 Subject: [PATCH] chore: run linter only once --- .github/workflows/node.js.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 3d786e8..40bb167 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -7,8 +7,19 @@ on: branches: [ main ] jobs: - build: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Use Node.js 14 + uses: actions/setup-node@v1 + with: + node-version: 14.x + - run: npm ci + - run: npm run lint + + test: runs-on: ubuntu-latest strategy: @@ -23,5 +34,4 @@ jobs: node-version: ${{ matrix.node-version }} - run: npm ci - run: npm run build --if-present - - run: npm run lint - run: npm test