Skip to content

Commit

Permalink
chore: group typecheck and lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Tonours committed Nov 23, 2024
1 parent 3736e97 commit b810fc1
Showing 1 changed file with 22 additions and 2 deletions.
24 changes: 22 additions & 2 deletions .github/workflows/sanity-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22.11.0'

- name: Restore node_modules from cache
uses: actions/cache@v4
with:
Expand All @@ -54,11 +59,16 @@ jobs:
lint:
name: Lint
runs-on: ubuntu-latest
needs: [typecheck]
needs: [setup]
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22.11.0'

- name: Restore node_modules from cache
uses: actions/cache@v4
with:
Expand All @@ -76,6 +86,11 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22.11.0'

- name: Restore node_modules from cache
uses: actions/cache@v4
with:
Expand All @@ -88,11 +103,16 @@ jobs:
build:
name: Build
runs-on: ubuntu-latest
needs: [lint]
needs: [test]
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22.11.0'

- name: Restore node_modules from cache
uses: actions/cache@v4
with:
Expand Down

0 comments on commit b810fc1

Please sign in to comment.