chore(deps-dev): bump @typescript-eslint/eslint-plugin from 6.21.0 to 8.19.0 in /frontend #35
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: CI | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
backend-tests: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.10", "3.11"] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r backend/requirements.txt | |
pip install pytest pytest-cov pylint black | |
- name: Check formatting | |
run: | | |
black --check backend/ | |
- name: Lint with pylint | |
run: | | |
pylint backend/src/ | |
- name: Run tests with coverage | |
run: | | |
pytest backend/tests/ --cov=backend/src/ --cov-report=xml | |
frontend-tests: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18.x, 20.x] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install dependencies | |
run: | | |
cd frontend | |
npm ci | |
- name: Check formatting | |
run: | | |
cd frontend | |
npm run format:check | |
- name: Lint | |
run: | | |
cd frontend | |
npm run lint | |
- name: Type check | |
run: | | |
cd frontend | |
npm run typecheck | |
- name: Build | |
run: | | |
cd frontend | |
npm run build |