hypnagaga/.github/workflows/lint.yaml
2024-08-21 13:47:20 +01:00

34 lines
No EOL
624 B
YAML

name: Lint
on:
pull_request:
branches:
- main
concurrency: ${{ github.workflow }}-${{ github.ref }}
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: npx eslint ./src/components/