From d7524ee503c2e0616d7772a2a9b38b3d83faf709 Mon Sep 17 00:00:00 2001 From: Andrea Gueugnaut Date: Wed, 11 Dec 2024 10:53:42 +0100 Subject: [PATCH] ci: compute coverage from packages and upload them to codecov --- .github/workflows/main.yml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 59c02569f..504186cd3 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -76,10 +76,28 @@ jobs: LOG_LEVEL: fatal REACT_APP_API_URL: http://localhost:3001 - - name: Upload coverage reports to Codecov + - name: Upload frontend coverage reports to Codecov uses: codecov/codecov-action@v5 with: token: ${{ secrets.CODECOV_TOKEN }} + disable_search: true + files: ./frontend/coverage/coverage-final.json + flags: frontend + + - name: Upload packages coverage reports to Codecov + uses: codecov/codecov-action@v5 + with: + token: ${{ secrets.CODECOV_TOKEN }} + directory: packages + flags: packages + + - name: Upload packages coverage reports to Codecov + uses: codecov/codecov-action@v5 + with: + token: ${{ secrets.CODECOV_TOKEN }} + disable_search: true + files: ./server/coverage/coverage-final.json + flags: server - name: Test database migrations run: yarn workspace @zerologementvacant/server run test:migrations --run-in-band