Skip to content

Commit 2090e86

Browse files
committed
CI Fixes
1 parent fe5bd3c commit 2090e86

4 files changed

Lines changed: 849 additions & 19 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,16 @@ jobs:
3030

3131
- name: Run frontend tests with coverage
3232
working-directory: ./frontend
33-
run: npm run test -- --coverage --watchAll=false
33+
run: npm run test -- --coverage --run
3434

3535
- name: Upload frontend coverage
3636
uses: codecov/codecov-action@v3
37-
if: always()
37+
if: success()
3838
with:
3939
file: ./frontend/coverage/lcov.info
4040
flags: frontend
4141
name: frontend-coverage
42+
fail_ci_if_error: false
4243

4344
- name: Build frontend
4445
working-directory: ./frontend

frontend/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
"@types/react": "^18",
3838
"@types/react-dom": "^18",
3939
"@vitejs/plugin-react": "^4.3.4",
40+
"@vitest/coverage-v8": "^2.1.9",
4041
"autoprefixer": "^10.4.16",
4142
"eslint": "^9.30.1",
4243
"eslint-config-next": "15.3.5",

frontend/vitest.config.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,17 @@ export default defineConfig({
99
env: {
1010
NEXT_PUBLIC_API_URL: 'http://localhost:8000',
1111
},
12+
coverage: {
13+
reporter: ['text', 'lcov', 'html'],
14+
reportsDirectory: './coverage',
15+
exclude: [
16+
'node_modules/**',
17+
'src/test/**',
18+
'**/*.d.ts',
19+
'**/*.config.*',
20+
'**/coverage/**',
21+
],
22+
},
1223
},
1324
resolve: {
1425
alias: {

0 commit comments

Comments
 (0)