Update to be an API that supports our own implementation of Zen Engine, ability to fetch json files, and rule mapping #42
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ESLint is a tool for identifying and reporting on patterns | |
# found in ECMAScript/JavaScript code. | |
# More details at https://github.com/eslint/eslint | |
# and https://eslint.org | |
name: ESLint | |
on: | |
push: | |
branches: '*' | |
pull_request: | |
branches: ['main', 'dev'] | |
jobs: | |
eslint: | |
name: Run eslint scanning | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
security-events: write | |
actions: read | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install ESLint | |
run: | | |
npm install [email protected] | |
- name: Run ESLint | |
run: npm run lint:pipeline | |
continue-on-error: true | |
- name: Upload ESLint report | |
uses: actions/upload-artifact@v2 | |
with: | |
name: eslint-report | |
path: eslint-report.html | |
- name: Display ESLint report link | |
run: echo "::set-output name=eslint-report::${{ steps.upload.outputs.artifact_path }}" |