Skip to content

Commit

Permalink
Add test-frontend-format CI job
Browse files Browse the repository at this point in the history
  • Loading branch information
thomashbrnrd committed Jun 10, 2024
1 parent 31f3490 commit d2690b4
Show file tree
Hide file tree
Showing 4 changed files with 1,752 additions and 868 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,16 @@ jobs:
steps:
- run: cd /app && pytest

test-frontend-format:
name: Test Frontend Formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- working-directory: frontend
run: |
npm ci
npm run format-check
test-e2e:
name: Run E2E tests
needs: [build-backend, build-frontend]
Expand Down
1 change: 1 addition & 0 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"start": "API_HOST=http://localhost:5000 vite",
"lint": "eslint . --fix --ignore-path ../.gitignore",
"format": "prettier . --write",
"format-check": "prettier . --check",
"test:e2e-ci": "FRONTEND_HOST=localhost FRONTEND_PORT=3000 cypress run --e2e --browser firefox",
"test:e2e-open": "FRONTEND_HOST=localhost FRONTEND_PORT=5173 cypress open --e2e --browser firefox"
},
Expand Down
Loading

0 comments on commit d2690b4

Please sign in to comment.