tasko/.github/workflows/eslint.yml

46 lines
1,023 B
YAML
Raw Normal View History

2024-03-02 02:48:39 +00:00
name: ESLint
on:
push:
2024-03-15 21:03:28 +00:00
branches: ['main']
2024-03-02 02:48:39 +00:00
pull_request:
2024-03-15 21:03:28 +00:00
branches: ['main']
2024-03-02 02:48:39 +00:00
schedule:
- cron: '25 21 * * 1'
jobs:
eslint:
name: Run eslint scanning
runs-on: ubuntu-latest
permissions:
contents: read
security-events: write
2024-04-06 21:10:06 +00:00
actions: read
2024-03-02 02:48:39 +00:00
steps:
- name: Checkout code
uses: actions/checkout@v4
2024-12-28 22:40:09 +00:00
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 'latest'
2024-06-05 00:41:40 +00:00
- name: Configure Corepack
run: corepack enable
- name: Install Dependencies
2025-01-10 23:26:17 +00:00
run: yarn install --immutable
2024-03-02 02:48:39 +00:00
- name: Run ESLint
2024-04-06 21:10:06 +00:00
run: npx next lint
2024-10-18 02:29:45 +00:00
--config eslint.config.mjs
2024-03-02 02:48:39 +00:00
--format @microsoft/eslint-formatter-sarif
--output-file eslint-results.sarif
continue-on-error: true
- name: Upload analysis results to GitHub
2024-03-02 02:51:44 +00:00
uses: github/codeql-action/upload-sarif@v3
2024-03-02 02:48:39 +00:00
with:
sarif_file: eslint-results.sarif
2024-03-15 21:03:28 +00:00
wait-for-processing: true