Skip to content

feat: WIP

feat: WIP #98

Workflow file for this run

name: Front lint
on:
push:
branches: ['main', '*']
paths:
- '**/front/**/*'
- 'folio_content/**/*'
pull_request:
branches: ['main']
schedule:
- cron: '24 2 * * 3'
jobs:
eslint:
name: Run eslint scanning
runs-on: ubuntu-latest
permissions:
contents: read
security-events: write
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status
steps:
- uses: actions/checkout@v4
- name: Use Node.js 22
uses: actions/setup-node@v4
with:
node-version: 22.x
cache: 'yarn'
- name: Install ESLint
run: |
yarn add @microsoft/eslint-formatter-sarif -D
- name: Run ESLint
run: npx nx run front:lint --
--format @microsoft/eslint-formatter-sarif
--output-file eslint-results.sarif
continue-on-error: true
- name: Upload analysis results to GitHub
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: apps/front/eslint-results.sarif
wait-for-processing: true