Skip to content
This repository has been archived by the owner on Aug 22, 2024. It is now read-only.

Commit

Permalink
feat: removed git-diff.sh script, running directly in workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ASuciuX committed Dec 8, 2023
1 parent b07c362 commit a804dff
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 30 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/logging-mutants.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@ jobs:
- name: Print old commit hash
run: cat ./mutation-testing/packages-output/last_commit_hash.txt

- name: Create git.diff file
run: |
last_commit_hash=$(<../packages-output/last_commit_hash.txt)
git diff $last_commit_hash > git.diff
working-directory: ./mutation-testing/scripts

- name: Remove deleted functions from output files
run: ./remove-deleted-functions-from-output.sh
working-directory: ./mutation-testing/scripts
Expand All @@ -58,10 +64,10 @@ jobs:

- name: Run the mutation testing on the differences
run: |
if [ -f ../packages-output/last_commit_hash.txt ]; then
./git-diff.sh
if [ -f ./packages-output/last_commit_hash.txt ]; then
cargo mutants --no-shuffle -j 2 -vV --in-diff ./scripts/git.diff --output temp/
fi
working-directory: ./mutation-testing/scripts
working-directory: ./mutation-testing

- name: Update the content from the stable output
run: bash append-match-package.sh
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/tracking-pr-mutants.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
run: |
git branch -av
git diff origin/${{ github.base_ref }}.. | tee git.diff
working-directory: ./mutation-testing/scripts

- uses: Swatinem/rust-cache@v2

Expand All @@ -33,6 +34,7 @@ jobs:
- name: Mutants
run: |
cargo mutants --no-shuffle -j 2 -vV --in-diff git.diff || true
working-directory: ./mutation-testing/scripts

- name: Check if we have missed/timeout mutants, and if so, fail the workflow
run: |
Expand Down
27 changes: 0 additions & 27 deletions mutation-testing/scripts/git-diff.sh

This file was deleted.

0 comments on commit a804dff

Please sign in to comment.