Skip to content

feat: run the code checks on pushes to main too #17

feat: run the code checks on pushes to main too

feat: run the code checks on pushes to main too #17

Workflow file for this run

name: Lint
on:
pull_request:
branches: [main]
push:
branches: [main]
workflow_dispatch:
permissions:
contents: read
concurrency:
group: lint-${{ github.event.pull_request.number || github.run_id }}
cancel-in-progress: true
jobs:
lint:
name: eslint
runs-on: [staging-access]
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '22'
- name: Install dependencies
run: npm ci --ignore-scripts
- name: Lint
run: npm run lint