-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (29 loc) · 849 Bytes
/
lint.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Linting
on:
pull_request: {}
push: {}
jobs:
eslint:
name: "Check Lints"
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
- name: Setup
uses: ./.github/actions/setup
with:
node_auth_token: "${{ secrets.NODE_AUTH_TOKEN_GITHUB || secrets.GITHUB_TOKEN }}"
- name: Check
run: |
npm run lint -- --output-file=eslint_report.json --format=json || status=$?
if [ "$status" -eq 2 ]; then exit 2; fi
- name: Annotate
uses: ataylorme/eslint-annotate-action@v2
if: ${{ always() }}
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
report-json: "eslint_report.json"
fail-on-warning: true
check-name: Problems