Use checkout v4 and only fetch main #30
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Push commit | |
on: | |
push: | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Git checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 22.5 | |
cache: 'npm' | |
- name: Installing dependencies | |
run: npm ci | |
- name: Typecheck | |
if: always() | |
run: npm run typecheck | |
- name: Lint | |
if: always() | |
run: npm run lint |