diff --git a/.github/workflows/quality-checks.yml b/.github/workflows/quality-checks.yml index 413594a6..7ea28ee6 100644 --- a/.github/workflows/quality-checks.yml +++ b/.github/workflows/quality-checks.yml @@ -21,7 +21,15 @@ jobs: - name: Run Go tests working-directory: backend - run: go test -v ./... + run: go test -v -coverprofile=coverage.out ./... + + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v5 + with: + token: ${{ secrets.CODECOV_TOKEN }} + files: ./backend/coverage.out + flags: backend + fail_ci_if_error: true - name: Run golangci-lint uses: golangci/golangci-lint-action@0a35821d5c230e903fcfe077583637dea1b27b47 # v9.0.0 @@ -50,7 +58,15 @@ jobs: - name: Run frontend tests working-directory: frontend - run: npm test + run: npm run test:coverage + + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v5 + with: + token: ${{ secrets.CODECOV_TOKEN }} + directory: ./frontend/coverage + flags: frontend + fail_ci_if_error: true - name: Run frontend lint working-directory: frontend