From c02c1d7431f9459fa079e619fea8dcbb62c35154 Mon Sep 17 00:00:00 2001 From: Liran Tal Date: Sat, 12 Jun 2021 15:59:04 +0300 Subject: [PATCH] build: run linter separated from tests (#11) --- .github/workflows/main.yml | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2808eda..7bf8345 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -3,12 +3,25 @@ name: CI on: [push, pull_request] jobs: + lint: + name: Lint + runs-on: 'ubuntu-latest' + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: '14' + - name: install dependencies + run: yarn install --frozen-lockfile + - name: lint code + run: npm run lint + build: strategy: matrix: platform: [ubuntu-latest] node: ['12', '14'] - name: Node ${{ matrix.node }} (${{ matrix.platform }}) + name: Tests - Node ${{ matrix.node }} (${{ matrix.platform }}) runs-on: ${{ matrix.platform }} steps: - uses: actions/checkout@v2 @@ -17,8 +30,6 @@ jobs: node-version: ${{ matrix.node }} - name: install dependencies run: yarn install --frozen-lockfile - - name: lint code - run: npm run lint - name: run tests run: npm run test