Skip to content

Commit

Permalink
ci: make ci workflow to run typecheck and continue on failed steps
Browse files Browse the repository at this point in the history
  • Loading branch information
evermake committed Sep 28, 2024
1 parent 23586c5 commit af02ec7
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,18 @@ jobs:
node-version: 20
cache: pnpm

- name: Install ni
run: npm i -g @antfu/ni

- name: Install dependencies
id: dependencies
run: nci
run: pnpm install

- name: Typecheck
if: '!cancelled()'
run: pnpm run -r typecheck

- name: Lint
if: steps.dependencies.outcome == 'success'
run: nr lint
if: '!cancelled()'
run: pnpm run lint

- name: Test
if: steps.dependencies.outcome == 'success'
run: nr test
if: '!cancelled()'
run: pnpm run test

0 comments on commit af02ec7

Please sign in to comment.