New UI #86
Workflow file for this run
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
name: Lint | |
on: | |
pull_request: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
editorconfig: | |
name: Lint with editorconfig | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Run eclint | |
run: | | |
npx eclint check . | |
eslint: | |
name: Lint frontend with eslint | |
runs-on: ubuntu-latest | |
permissions: | |
security-events: write | |
contents: read | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up pnpm | |
uses: pnpm/action-setup@v2.4.1 | |
with: | |
package_json_file: src/frontend/package.json | |
- name: Set up node | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: src/frontend/package.json | |
cache-dependency-path: src/frontend/pnpm-lock.yaml | |
cache: pnpm | |
- name: Install dependencies | |
working-directory: src/frontend | |
run: | | |
pnpm install | |
- name: Run eslint | |
working-directory: src/frontend | |
run: eslint --report-unused-disable-directives --max-warnings 0 --format json --output-file result.json . | |
- name: Upload eslint results | |
if: always() | |
uses: ldiego73/eslint-report-action@v1.1 | |
with: | |
report: result.json |