Skip to content

Merge pull request #145 from actions/dependabot/npm_and_yarn/undici-5… #286

Merge pull request #145 from actions/dependabot/npm_and_yarn/undici-5…

Merge pull request #145 from actions/dependabot/npm_and_yarn/undici-5… #286

Workflow file for this run

name: Lint code
on:
push:
branches:
- main
pull_request:
permissions:
contents: read
# This allows a subsequently queued workflow run to interrupt previous runs
concurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
cancel-in-progress: true
jobs:
lint:
runs-on: ubuntu-latest
timeout-minutes: 2
steps:
- name: Check out repo
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version-file: '.node-version'
cache: npm
- name: Install dependencies
run: npm ci
- name: Run linter
run: npm run lint:check