Skip to content

Commit

Permalink
CI: run linter only once 💚
Browse files Browse the repository at this point in the history
  • Loading branch information
KristjanESPERANTO authored and derhuerst committed Dec 12, 2024
1 parent 59b269d commit 0c78a63
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,21 @@ env:
npm_config_cache: /tmp/npm-cache

jobs:
lint:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: "Checkout code"
uses: actions/checkout@v4
- name: "Use Node.js"
uses: actions/setup-node@v4
with:
node-version: 'lts/*'
- name: "Install dependencies"
run: |
npm install
- name: "Run linter"
run: npm run lint
unit-tests:
runs-on: ubuntu-latest
strategy:
Expand All @@ -31,7 +46,6 @@ jobs:
path: ${{ env.npm_config_cache }}
- run: npm install

- run: npm run lint
- run: npm run test-unit

integration-tests:
Expand Down

0 comments on commit 0c78a63

Please sign in to comment.