From 178d478326628d8ef8c952de41d4e9e4532700cd Mon Sep 17 00:00:00 2001 From: Kevin Matthes <92332892+kevinmatthes@users.noreply.github.com> Date: Fri, 8 Mar 2024 19:12:09 +0100 Subject: [PATCH] [Bugfix] CI: Adjust Code Coverage Workflow (#1276) * Fixed ::= CI: simplify PR workflow * Create summary of recent changes --------- Co-authored-by: GitHub Actions <41898282+github-actions[bot]@users.noreply.github.com> --- .github/workflows/pr.yml | 52 ++----------------- ..._Actions_change-code-coverage-workflow.ron | 8 +++ 2 files changed, 13 insertions(+), 47 deletions(-) create mode 100644 changelog.d/20240308_180820_GitHub_Actions_change-code-coverage-workflow.ron diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index fcbca194..cebf007f 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -39,7 +39,7 @@ permissions: pull-requests: write jobs: - code: + coverage: runs-on: ubuntu-latest steps: - uses: taiki-e/install-action@v2.28.6 @@ -63,53 +63,11 @@ jobs: - run: | rustup update cargo llvm-cov --cobertura --output-path cobertura.xml - { - echo '```' ; - pycobertura show cobertura.xml ; - echo '```' ; - } >> coverage.md + pycobertura show cobertura.xml >> coverage.md - - uses: thollander/actions-comment-pull-request@v2.5.0 + - uses: actions/upload-artifact@v4.3.1 with: - comment_tag: coverage - filePath: coverage.md - - coverage: - runs-on: ubuntu-latest - steps: - - run: bash -c 'exit 0' - -# mutations: -# runs-on: ubuntu-latest -# steps: -# - uses: actions/checkout@v3.5.3 -# with: -# persist-credentials: false -# -# - uses: baptiste0928/cargo-install@v2.1.0 -# with: -# crate: cargo-mutants -# -# - run: | -# rustup update -# cargo mutants -# { -# echo '```' ; -# jq '{ \ -# total: .total_mutants, \ -# unviable: .unviable, \ -# missed: .missed, \ -# caught: .caught, \ -# timeout: .timeout, \ -# success: .success, \ -# failure: .failure \ -# }' ; -# echo '```' ; -# } >> mutations.md -# -# - uses: thollander/actions-comment-pull-request@v2.4.2 -# with: -# comment_tag: mutations -# filePath: mutations.md + name: code-coverage.txt + path: code-coverage.txt ################################################################################ diff --git a/changelog.d/20240308_180820_GitHub_Actions_change-code-coverage-workflow.ron b/changelog.d/20240308_180820_GitHub_Actions_change-code-coverage-workflow.ron new file mode 100644 index 00000000..67f74c76 --- /dev/null +++ b/changelog.d/20240308_180820_GitHub_Actions_change-code-coverage-workflow.ron @@ -0,0 +1,8 @@ +( + references: {}, + changes: { + "Fixed": [ + "CI: simplify PR workflow", + ], + }, +)