Skip to content

Commit

Permalink
fixing pipeline configs
Browse files Browse the repository at this point in the history
Signed-off-by: Sienna Lloyd <[email protected]>
  • Loading branch information
siennathesane committed Sep 7, 2024
1 parent de55fb8 commit d199089
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 11 deletions.
8 changes: 7 additions & 1 deletion .github/codecov.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ coverage:
project:
default:
informational: true
target: 80%
threshold: 1%
patch:
default:
target: 0%
target: 80%
threshold: 1%
comment:
layout: " diff, flags, files"
behavior: default
48 changes: 38 additions & 10 deletions .github/workflows/pull_requests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,18 +58,17 @@ jobs:
with:
tool: cargo-mutants,cargo-nextest
- name: generate diff
continue-on-error: true
run: |
git branch -av
git diff origin/${{ github.base_ref }}.. | tee git.diff
- run: cargo mutants --test-tool=nextest -vV --in-place --in-diff git.dff
- run: cargo mutants --test-tool=nextest -vV --in-diff git.diff
- uses: actions/upload-artifact@v4
with:
name: mutants-out
path: mutants.out
overwrite: true
bench:
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -84,14 +83,43 @@ jobs:
uses: actions/upload-artifact@v4
with:
path: bench.txt
overwrite: true
update-pr:
if: always()
needs:
- test-incremental-mutants
- bench
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: setup rust
run: |
rustup toolchain install nightly
rustup default nightly
- name: download bench
uses: actions/download-artifact@v4
with:
path: bench.txt
- name: download mutants
uses: actions/download-artifact@v4
with:
path: mutants.out
- name: prep benchmark comment
run: |
echo "## Benchmark Results" > prepped-bench.txt
echo "```sh" >> prepped-bench.txt
cat bench.txt >> prepped-bench.txt
echo "```" >> prepped-bench.txt
- name: add bench to pr
echo "## Benchmark Results" > results.txt
echo '```sh' >> results.txt
cat bench.txt >> results.txt
echo '```' >> results.txt
echo "## Possible Bugs" >> results.txt
echo '```' >> results.txt
cat mutants.out/missed.txt >> results.txt
echo '```' >> results.txt
- name: update pr comment
uses: thollander/actions-comment-pull-request@v2
with:
filePath: prepped-bench.txt
filePath: results.txt
comment_tag: execution

0 comments on commit d199089

Please sign in to comment.