Skip to content

Commit

Permalink
ci(tests): add Vitest run to workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
hdinia committed Jun 24, 2024
1 parent 305ba83 commit 68238fe
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
strategy:
max-parallel: 9
matrix:
os: [ windows-latest, ubuntu-20.04 ]
os: [windows-latest, ubuntu-20.04]

steps:
- name: Checkout github repo (+ download lfs dependencies)
Expand Down Expand Up @@ -69,7 +69,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-20.04 ]
os: [ubuntu-20.04]
steps:
- name: Checkout github repo
uses: actions/checkout@v4
Expand All @@ -89,10 +89,13 @@ jobs:
- name: Lint
run: npm run lint
working-directory: webapp
- name: Test
run: npm run test
working-directory: webapp

sonarcloud:
runs-on: ubuntu-20.04
needs: [ python-test, npm-test ]
needs: [python-test, npm-test]
steps:
- uses: actions/checkout@v4
- name: Download python coverage report
Expand Down
6 changes: 3 additions & 3 deletions webapp/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion webapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
"@typescript-eslint/parser": "6.14.0",
"@vitejs/plugin-react-swc": "3.5.0",
"@vitest/coverage-v8": "1.6.0",
"@vitest/ui": "^1.6.0",
"@vitest/ui": "1.6.0",
"eslint": "8.55.0",
"eslint-config-prettier": "9.0.0",
"eslint-plugin-jsdoc": "48.2.0",
Expand Down
3 changes: 2 additions & 1 deletion webapp/tsconfig.node.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"skipLibCheck": true,
"module": "ESNext",
"moduleResolution": "bundler",
"allowSyntheticDefaultImports": true
"allowSyntheticDefaultImports": true,
"types": ["vitest/globals", "vitest/jsdom"]
},
"include": ["vite.config.ts"]
}

0 comments on commit 68238fe

Please sign in to comment.