Skip to content

Commit

Permalink
ci: separate lint job
Browse files Browse the repository at this point in the history
  • Loading branch information
hannoeru committed Aug 28, 2023
1 parent e878395 commit 31424b2
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,25 @@ permissions:
contents: read # for checkout

jobs:
lint:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v3

- run: corepack enable

- uses: actions/setup-node@v3
with:
node-version-file: .nvmrc
cache: pnpm

- name: Install deps
run: pnpm i

- name: Lint
run: pnpm lint

test:
strategy:
matrix:
Expand Down Expand Up @@ -43,7 +62,7 @@ jobs:
run: npm run test

release:
needs: test
needs: [lint, test]
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
runs-on: ubuntu-latest
permissions:
Expand Down

0 comments on commit 31424b2

Please sign in to comment.