Create a summary with the generated ESLint JSON report.
Required Default is ${{ github.token }}
Required The path to the ESLint report JSON file
Optional. the Summary title
Optional. Enables the display of errors or warnings by rules. Default is true
Optional. Fail when ESLint warnings are detected. Default is false
Optional. Github has the limitation that you can only have 50 annotations and 65535 characters per request. This input tries to solve the problem, limiting the number of visible problems. Default is 100
name: Main flow
on:
push:
branches:
- main
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- run: npm ci
- run: npm run lint:json
continue-on-error: true
- uses: ldiego73/eslint-report-action@v1.1
with:
token: ${{ secrets.GITHUB_TOKEN }}
report: reports/lint.json