@@ -29,17 +29,19 @@ jobs:
29
29
small_packages_with_shards : ${{ steps.check_packages_and_shards.outputs.small_packages_with_shards }}
30
30
31
31
steps :
32
- - uses : actions/checkout@v3
32
+ - name : Checkout repo
33
+ uses : actions/checkout@v3
33
34
with :
34
35
fetch-depth : 0
35
36
36
- - run : cargo install --version 23.12.2 cargo-mutants
37
+ - name : Install cargo-mutants
38
+ run : cargo install --version 23.12.2 cargo-mutants
37
39
38
40
- name : Relative diff
39
41
run : |
40
42
git diff origin/${{ github.base_ref }}.. > git.diff
41
43
42
- - name : Remove deleted file's lines from git.diff file
44
+ - name : Update git diff
43
45
run : |
44
46
input_file="git.diff"
45
47
temp_file="temp_diff_file.diff"
57
59
!in_block
58
60
' "$input_file" > "$temp_file" && mv "$temp_file" "$input_file"
59
61
60
- - name : Split diffs into big and small packages
62
+ - name : Split diffs
61
63
run : |
62
64
cargo mutants --in-diff git.diff --list > all_mutants.txt
63
65
mkdir -p mutants_by_packages
72
74
fi
73
75
done < all_mutants.txt
74
76
75
- - id : check_packages_and_shards
77
+ - name : Check packages and shards
78
+ id : check_packages_and_shards
76
79
run : |
77
80
number_of_big_mutants=0
78
81
number_of_small_mutants=0
@@ -129,7 +132,7 @@ jobs:
129
132
runs-on : ubuntu-latest
130
133
131
134
steps :
132
- - name : Run pr differences mutants from actions - no shards, small packages
135
+ - name : Run mutants on diffs
133
136
uses : stacks-network/actions/mutation-testing/pr-differences@feat/mutation-testing
134
137
with :
135
138
package-dimension : " small"
@@ -150,7 +153,7 @@ jobs:
150
153
shard : [0, 1, 2, 3]
151
154
152
155
steps :
153
- - name : Run pr differences mutants from actions - with shards, small packages
156
+ - name : Run mutants on diffs
154
157
uses : stacks-network/actions/mutation-testing/pr-differences@feat/mutation-testing
155
158
with :
156
159
shard : ${{ matrix.shard }}
@@ -167,7 +170,7 @@ jobs:
167
170
runs-on : ubuntu-latest
168
171
169
172
steps :
170
- - name : Run pr differences mutants from actions - no shards, big packages
173
+ - name : Run Run mutants on diffs
171
174
env :
172
175
BITCOIND_TEST : 1
173
176
RUST_BACKTRACE : full
@@ -191,7 +194,7 @@ jobs:
191
194
shard : [0, 1, 2, 3, 4, 5, 6, 7]
192
195
193
196
steps :
194
- - name : Run pr differences mutants from actions - with shards, big packages
197
+ - name : Run mutants on diffs
195
198
env :
196
199
BITCOIND_TEST : 1
197
200
RUST_BACKTRACE : full
@@ -216,10 +219,10 @@ jobs:
216
219
]
217
220
218
221
steps :
219
- - name : Download all workflow run artifacts
222
+ - name : Download artifacts
220
223
uses : actions/download-artifact@v3
221
224
222
- - name : Append output from all shards
225
+ - name : Append output from shards
223
226
run : |
224
227
folders=("mutants-shard-big--1" "mutants-shard-big-0" "mutants-shard-big-1" "mutants-shard-big-2" "mutants-shard-big-3" "mutants-shard-big-4" "mutants-shard-big-5" "mutants-shard-big-6" "mutants-shard-big-7" "mutants-shard-small--1" "mutants-shard-small-0" "mutants-shard-small-1" "mutants-shard-small-2" "mutants-shard-small-3")
225
228
files=("missed.txt" "caught.txt" "timeout.txt" "unviable.txt")
@@ -263,7 +266,7 @@ jobs:
263
266
264
267
echo "$most_relevant_exit_code" > './mutants-shards/exit_code.txt'
265
268
266
- - name : Print mutants and handle exit codes
269
+ - name : Print mutants
267
270
run : |
268
271
server_url="${{ github.server_url }}"
269
272
organisation="${{ github.repository_owner }}"
0 commit comments