Skip to content

Commit

Permalink
ci: update run-checks to cache .npm cache and named steps (#2504) (#2505
Browse files Browse the repository at this point in the history
)

ci: update run-checks to cache node_modules and named steps (#2504)
  • Loading branch information
NoopDog authored Nov 5, 2024
1 parent ef9afc2 commit c1a363a
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions .github/workflows/run-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,18 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: "20.10.0"
- run: |
npm ci
npm run check-format
npm run lint
npx tsc --noEmit
- name: Cache npm cache
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
- name: Install dependencies
run: npm ci
- name: Next.js Build
run: npm run build-prod:data-portal
- name: Run Prettier
run: npm run check-format
- name: Run Linter (ESLint)
run: npm run lint
- name: Type Check
run: npx tsc --noEmit

0 comments on commit c1a363a

Please sign in to comment.