Skip to content

Commit

Permalink
Only export covergae for up to date OTP (#356)
Browse files Browse the repository at this point in the history
  • Loading branch information
maennchen authored Jun 12, 2024
1 parent fa872d4 commit d06f6d6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/part_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ jobs:
- run: rebar3 eunit --cover --cover_export_name "eunit-${{ steps.setupBEAM.outputs.otp-version }}"
continue-on-error: ${{ matrix.unstable }}
- uses: actions/upload-artifact@v4
if: "${{ matrix.otp == needs.detectToolVersions.outputs.otpVersion }}"
with:
name: eunit-coverage-${{ matrix.otp }}
path: "_build/test/cover/eunit-${{ steps.setupBEAM.outputs.otp-version }}.coverdata"
Expand Down Expand Up @@ -159,6 +160,7 @@ jobs:
- run: rebar3 ct --cover --cover_export_name "ct-${{ steps.setupBEAM.outputs.otp-version }}"
continue-on-error: ${{ matrix.unstable }}
- uses: actions/upload-artifact@v4
if: "${{ matrix.otp == needs.detectToolVersions.outputs.otpVersion }}"
with:
name: ct-coverage-${{ matrix.otp }}
path: _build/test/cover/ct-${{ steps.setupBEAM.outputs.otp-version }}.coverdata
Expand Down Expand Up @@ -215,6 +217,7 @@ jobs:
- run: mix test --cover --export-coverage "mix_test-${{ steps.setupBEAM.outputs.elixir-version }}"
continue-on-error: ${{ matrix.unstable }}
- uses: actions/upload-artifact@v4
if: "${{ matrix.otp == needs.detectToolVersions.outputs.otpVersion }}"
with:
name: mix_test-coverage-${{ matrix.elixir }}
path: cover/mix_test-${{ steps.setupBEAM.outputs.elixir-version }}.coverdata
Expand Down

0 comments on commit d06f6d6

Please sign in to comment.