diff --git a/.github/workflows/analysis.yml b/.github/workflows/analysis.yml index 6e51db9dfa..f59cfe5bc7 100644 --- a/.github/workflows/analysis.yml +++ b/.github/workflows/analysis.yml @@ -45,10 +45,14 @@ 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" - 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 }} + name: "Generate coverage data" + run: ./ns3 build coverage_gcc + - if: env.CACHE_MISSES != '0' + name: "Submit coverage data to codecov.io" + uses: codecov/codecov-action@v4 + with: + working-directory: /home/runner/work/lorawan/lorawan/src/lorawan + file: /home/runner/work/lorawan/lorawan/build/coverage/ns3.info + root_dir: /home/runner/work/lorawan/lorawan/src/lorawan + token: ${{ secrets.CODECOV_TOKEN }} + verbose: true