👷(frontend) add linting and formatting checks for frontend

Added CI job to run linting and formatting checks in the frontend
codebase. Please note, we should cache frontend dependencies,
to avoid re-installing them. Future improvement!
This commit is contained in:
lebaudantoine
2024-08-06 11:15:45 +02:00
committed by aleb_the_flash
parent 0b6f58bf9c
commit 5d35161ae3
2 changed files with 17 additions and 1 deletions

View File

@@ -160,6 +160,21 @@ jobs:
- name: Run tests
run: ~/.local/bin/pytest -n 2
lint-front:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install dependencies
run: cd src/frontend/ && npm ci
- name: Check linting
run: cd src/frontend/ && npm run lint
- name: Check format
run: cd src/frontend/ && npm run check
i18n-crowdin:
runs-on: ubuntu-latest
steps: