Skip to content

Lint Frontend

Lint Frontend #283

Workflow file for this run

name: Lint Frontend
on:
pull_request:
types: [reopened, review_requested]
paths:
- 'app/frontend/**'
push:
paths:
- 'app/frontend/**'
schedule:
- cron: '30 5 * * *'
# Down scope as necessary via https://docs.github.com/en/actions/security-guides/automatic-token-authentication#modifying-the-permissions-for-the-github_token
permissions:
checks: write
contents: write
jobs:
run-linters:
name: Lint & Format frontend
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./app/frontend
steps:
- name: Check out Git repository
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v1
with:
node-version: 21
- name: Install Node.js dependencies
run: npm ci
- name: Check Type-Safety
run: npm run type-check
- name: Run ESLint
run: npm run lint
- name: Run prettier
run: npm run format