mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-12 23:35:58 +00:00
set jest coverage check for webapp workflow
This commit is contained in:
parent
3533a36cdc
commit
556c63a864
10
.github/workflows/test-webapp.yml
vendored
10
.github/workflows/test-webapp.yml
vendored
@ -73,14 +73,6 @@ jobs:
|
||||
- name: backend | docker-compose
|
||||
run: docker-compose -f docker-compose.yml -f docker-compose.test.yml up --detach --no-deps webapp
|
||||
|
||||
- name: webapp | Unit tests
|
||||
- name: webapp | Unit tests incl. coverage check
|
||||
run: docker-compose exec -T webapp yarn test
|
||||
|
||||
- name: webapp | Coverage check
|
||||
uses: webcraftmedia/coverage-check-action@master
|
||||
with:
|
||||
report_name: Coverage Webapp
|
||||
type: lcov
|
||||
result_path: ./coverage/lcov.info
|
||||
min_coverage: 83
|
||||
token: ${{ github.token }}
|
||||
|
||||
@ -15,7 +15,11 @@ module.exports = {
|
||||
'!**/.prettierrc.js',
|
||||
'!**/nuxt.config.js',
|
||||
],
|
||||
coverageReporters: ['lcov', 'text'],
|
||||
coverageThreshold: {
|
||||
global: {
|
||||
lines: 83,
|
||||
},
|
||||
},
|
||||
setupFiles: ['<rootDir>/test/registerContext.js', '<rootDir>/test/testSetup.js'],
|
||||
transform: {
|
||||
'.*\\.(vue)$': 'vue-jest',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user