From d06f6d647b74ca4a0557682cf051f43085ec8ad6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonatan=20M=C3=A4nnchen?= Date: Wed, 12 Jun 2024 23:21:51 +0200 Subject: [PATCH] Only export covergae for up to date OTP (#356) --- .github/workflows/part_test.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/part_test.yml b/.github/workflows/part_test.yml index e0d035a..951b3df 100644 --- a/.github/workflows/part_test.yml +++ b/.github/workflows/part_test.yml @@ -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" @@ -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 @@ -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