Skip to content

frontend: fix linting #28

frontend: fix linting

frontend: fix linting #28

name: Frontend Unit Tests
on:
push:
branches: [ main ]
paths:
- 'frontend/**'
- '.github/workflows/frontend-tests.yml'
pull_request:
branches: [ main ]
paths:
- 'frontend/**'
- '.github/workflows/frontend-tests.yml'
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'npm'
cache-dependency-path: frontend/package-lock.json
- name: Install dependencies
working-directory: ./frontend
run: npm ci
- name: Run ESLint
working-directory: ./frontend
run: npm run lint
- name: Run unit tests
working-directory: ./frontend
run: npm run test:unit:run