Skip to content

ci: adds linter workflow #13

ci: adds linter workflow

ci: adds linter workflow #13

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" ]
schedule:
- cron: '19 1 * * 1'
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: |
exit 1
echo "::error::Linting failed!"
echo "::notice::Enable lint-on-save in your editor for automatic fixes"
echo "::notice::Run \`npm run lint\` for details about issues that aren't automatically fixable"