Feat/wunderkind smart tag #35
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: Lint | |
on: | |
pull_request: | |
branches: | |
- main | |
concurrency: ${{ github.workflow }}-${{ github.ref }} | |
permissions: | |
checks: write | |
contents: write | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- id: checkout | |
name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- id: setup-node | |
name: Setup Node.JS | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: npm | |
- id: install-deps | |
name: Install dependencies | |
run: npm ci | |
- id: lint | |
name: Lint code | |
run: npm run lint:check | |
- id: format | |
name: Format code | |
run: npm run format:check | |
- id: check-deps | |
name: Check for unused scripts and dependencies | |
run: npm run knip |