fix test_invoke_dpe::test_export_cdi_destroyed_root_context
#413
Workflow file for this run
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
| name: Code Coverage | |
| on: | |
| push: | |
| branches: ["main"] | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| analyze: | |
| runs-on: ubuntu-24.04 | |
| env: | |
| CARGO_INCREMENTAL: 0 | |
| CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse | |
| PR_TITLE: ${{github.event.pull_request.title}} | |
| PR_BASE_COMMIT: ${{github.event.pull_request.base.sha}} | |
| GIT_AUTHOR_NAME: ${{github.event.pull_request.user.login}} | |
| GIT_AUTHOR_EMAIL: ${{github.event.pull_request.user.id}}+${{github.event.pull_request.user.login}}@users.noreply.github.com | |
| GIT_COMMITTER_NAME: ${{github.event.pull_request.user.login}} | |
| GIT_COMMITTER_EMAIL: ${{github.event.pull_request.user.id}}+${{github.event.pull_request.user.login}}@users.noreply.github.com | |
| steps: | |
| - uses: actions/checkout@v3 | |
| with: | |
| fetch-depth: 0 | |
| ref: ${{ github.event.pull_request.head.sha }} | |
| - name: Pull dpe submodule | |
| run: | | |
| git submodule update --init dpe | |
| - name: Configure actions-cache environment variables | |
| uses: actions/github-script@v7 | |
| with: | |
| script: | | |
| core.exportVariable('ACTIONS_RESULTS_URL', process.env.ACTIONS_RESULTS_URL || ''); | |
| core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || ''); | |
| core.exportVariable('ACTIONS_CACHE_SERVICE_V2', 'on'); | |
| - name: Run code coverage analysis (look at workflow "Summary" tab for results) | |
| run: | | |
| cargo install rustfilt | |
| ./ci.sh build_fw test > coverage.txt || true | |
| sed -i -n '/coverage files found$/,$p' coverage.txt | |
| echo '# Code Coverage' >> $GITHUB_STEP_SUMMARY | |
| echo '```' >> $GITHUB_STEP_SUMMARY | |
| cat coverage.txt | rustfilt >> $GITHUB_STEP_SUMMARY | |
| echo '```' >> $GITHUB_STEP_SUMMARY |