Lint Frontend #265
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 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 |