Skip to content

Add code linting report generation and annotation #3

Add code linting report generation and annotation

Add code linting report generation and annotation #3

Workflow file for this run

name: Lint
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
run-eslint:
name: Run ESLint
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/[email protected]
- name: Set up node 18.x
uses: actions/[email protected]
with:
node-version: 18
cache: yarn
- name: Install dependencies
working-directory: ./packages/portal
run: yarn install
- name: Build GraphQL
run: yarn run gql:build
working-directory: .
- name: Run ESLint
run: npm run lint:report
continue-on-error: true
- name: Annotate Code Linting Results
uses: ataylorme/eslint-annotate-action@v2
with:
report-json: "eslint_report.json"