ci(deps): bump actions/upload-artifact from 6 to 7 #137
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Copyright 2015 - 2026, GIBIS-Unifesp and the wiRedPanda contributors | |
| # SPDX-License-Identifier: GPL-3.0-or-later | |
| name: Coverage | |
| on: | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| Ubuntu-Qt6_9_3-Code_Coverage: | |
| permissions: | |
| contents: read | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| submodules: recursive | |
| fetch-depth: 0 | |
| - name: Install Qt | |
| uses: jurplel/install-qt-action@v4 | |
| with: | |
| version: 6.9.3 | |
| cache: true | |
| aqtversion: ==3.* | |
| modules: qtmultimedia qtimageformats | |
| - name: ccache | |
| uses: hendrikmuhs/ccache-action@v1 | |
| with: | |
| key: coverage-${{ runner.os }} | |
| - name: Build | |
| run: | | |
| cmake --preset coverage | |
| cmake --build --preset coverage | |
| - name: Test | |
| timeout-minutes: 10 | |
| run: | | |
| ctest --preset coverage -V -LE gui | |
| - name: Generate gcov reports | |
| run: | | |
| cd build | |
| gcov -abcfu $(find . -name "*.gcno") | |
| - name: Upload coverage to Codecov | |
| uses: codecov/codecov-action@v6 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| directory: build | |
| fail_ci_if_error: true | |
| verbose: true | |
| - name: Upload build artifacts on failure | |
| if: failure() | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: coverage-build-logs | |
| path: | | |
| build/CMakeCache.txt | |
| build/CMakeFiles/CMakeOutput.log | |
| build/CMakeFiles/CMakeError.log | |
| retention-days: 7 |