Skip to content

Commit

Permalink
Annotate ES Lints
Browse files Browse the repository at this point in the history
  • Loading branch information
peterwilsoncc committed Aug 2, 2022
1 parent 55d7975 commit eb89066
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,19 @@ jobs:
node-version: 16
- name: npm install
run: npm install
- name: eslint
run: npm run lint:js
- name: Generate linting report
run: npm run lint:js -- --output-file eslint-report.json --format json
continue-on-error: true
- name: Annotate code linting results
uses: ataylorme/[email protected]
with:
repo-token: '${{ secrets.GITHUB_TOKEN }}'
report-json: 'eslint-report.json'
- name: Update summary
run: |
npm_config_yes=true npx github:10up/eslint-json-to-md --path ./eslint-report.json --output ./eslint-report.md
cat eslint-report.md >> $GITHUB_STEP_SUMMARY
if: ${{ failure() }}
phpcs:
name: phpcs
runs-on: ubuntu-latest
Expand Down

0 comments on commit eb89066

Please sign in to comment.