Skip to content

Commit

Permalink
build: run linter separated from tests (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
lirantal authored Jun 12, 2021
1 parent 1e3ff59 commit c02c1d7
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down

0 comments on commit c02c1d7

Please sign in to comment.