diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1be3904..8efb402 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -213,14 +213,20 @@ jobs: --xml-pretty \ -o coverage.xml - - name: Upload coverage artifact + - name: Upload coverage + # any except canceled or skipped if: >- always() && - (steps.test_report.outcome == 'success') - uses: actions/upload-artifact@v4 + (steps.test_report.outcome == 'success') && + startsWith(github.repository, 'LizardByte/') + uses: codecov/codecov-action@v4 with: - name: coverage-${{ matrix.os }} - path: build/coverage.xml + disable_search: true + fail_ci_if_error: true + files: ./build/coverage.xml + flags: ${{ runner.os }} + token: ${{ secrets.CODECOV_TOKEN }} + verbose: true - name: Move Artifacts run: | @@ -237,44 +243,6 @@ jobs: name: build-${{ runner.os }} path: artifacts/ - coverage: - if: >- - always() && - (needs.build.result == 'success' || needs.build.result == 'failure') && - startsWith(github.repository, 'LizardByte/') - name: Coverage-${{ matrix.flag }} - needs: build - runs-on: ubuntu-latest - strategy: - fail-fast: false - matrix: - include: - - build_os: ubuntu-latest - flag: Linux - - build_os: macos-latest - flag: macOS - - build_os: windows-latest - flag: Windows - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Download coverage artifact - uses: actions/download-artifact@v4 - with: - name: coverage-${{ matrix.build_os }} - path: _coverage - - - name: Upload coverage - uses: codecov/codecov-action@v4 - with: - disable_search: true - fail_ci_if_error: true - files: ./_coverage/coverage.xml - flags: ${{ matrix.flag }} - token: ${{ secrets.CODECOV_TOKEN }} - verbose: true - release: if: always() &&