From 5b9e206d72947bb2ce26a933ebd6ec59f9772e2e Mon Sep 17 00:00:00 2001 From: Alessandro Aimi Date: Fri, 11 Oct 2024 12:57:54 +0200 Subject: [PATCH] Codecov CI action in place of deprecated script --- .github/workflows/analysis.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/analysis.yml b/.github/workflows/analysis.yml index 6e51db9dfa..865fef72df 100644 --- a/.github/workflows/analysis.yml +++ b/.github/workflows/analysis.yml @@ -45,10 +45,15 @@ jobs: - name: "Extract ccache statistics" run: echo "CACHE_MISSES=`./utils/ccache-miss-rate.py`" >> $GITHUB_ENV - if: env.CACHE_MISSES != '0' - name: "Generate coverage data and submit to codecov.io" + name: "Generate coverage data" run: | ./ns3 build coverage_gcc - cd ./build/coverage - bash <(curl -s https://codecov.io/bash) -f ns3.info -R $GITHUB_WORKSPACE/src/lorawan || echo "Codecov did not collect coverage reports" - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} + mv build/coverage/ns3.info src/lorawan + - if: env.CACHE_MISSES != '0' + name: "Submit coverage data to codecov.io" + uses: codecov/codecov-action@v4 + with: + working-directory: src/lorawan + file: ns3.info + token: ${{ secrets.CODECOV_TOKEN }} + verbose: true