Skip to content

Commit

Permalink
feat: configuration de la collecte du coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
thom4parisot committed Oct 8, 2024
1 parent fd53a14 commit 0160e84
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 2 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,24 @@ jobs:
working-directory: ${{ matrix.app }}
run: npm clean-install-test --no-audit --no-fund

- name: Coveralls
uses: coverallsapp/github-action@v2
with:
base-path: ${{ matrix.app }}
parallel: true
flag-name: run-${{ join(matrix.*, ' - ') }}

- name: Build (if necessary)
working-directory: ${{ matrix.app }}
run: npm run build --if-present

finish:
needs: build
if: ${{ always() }}
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@v2
with:
parallel-finished: true
carryforward: "run-front,run-graphql,run-export"
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ sails/.tmp
nodemon.dev.json
/.idea/
/.run/

coverage/
1 change: 0 additions & 1 deletion front/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,5 @@ node_modules/
# Mac files
.DS_Store

/coverage/
/build/
public/config.json
6 changes: 5 additions & 1 deletion front/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,11 @@ export default defineConfig(async ({ mode }) => {
},

test: {
root: 'src',
exclude: [
'build/**',
'public/**',
'node_modules/**'
],
coverage: {
reporter: ['text', 'html', 'lcovonly'],
reportsDirectory: '../coverage'
Expand Down

0 comments on commit 0160e84

Please sign in to comment.