Skip to content

ci: adds linter workflow #16

ci: adds linter workflow

ci: adds linter workflow #16

Workflow file for this run

name: Node
on:
push:
branches: [ "integration" ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "integration" ]
jobs:
run-eslint:
runs-on: ubuntu-latest
name: ESLint via package.json
steps:
- uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
cache: 'npm'
- name: Install all dependencies (which includes linters)
run: npm install
- name: Run the linter
id: lint
run: npx eslint . --max-warnings 0 --cache
continue-on-error: true
- name: Intercept linter failure
if: steps.lint.outcome == 'failure'
run: |
echo "::notice::Enable lint-on-save in your editor for automatic fixes"
echo "::notice::Run \`npm run lint\` in your dev environment for details about issues that aren't automatically fixable"
exit 1