Skip to content

Commit 13f7197

Browse files
committed
feat: shorter names for steps
1 parent b90dc06 commit 13f7197

File tree

1 file changed

+15
-12
lines changed

1 file changed

+15
-12
lines changed

.github/workflows/pr-differences-mutants.yml

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,19 @@ jobs:
2929
small_packages_with_shards: ${{ steps.check_packages_and_shards.outputs.small_packages_with_shards }}
3030

3131
steps:
32-
- uses: actions/checkout@v3
32+
- name: Checkout repo
33+
uses: actions/checkout@v3
3334
with:
3435
fetch-depth: 0
3536

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
3739

3840
- name: Relative diff
3941
run: |
4042
git diff origin/${{ github.base_ref }}.. > git.diff
4143
42-
- name: Remove deleted file's lines from git.diff file
44+
- name: Update git diff
4345
run: |
4446
input_file="git.diff"
4547
temp_file="temp_diff_file.diff"
@@ -57,7 +59,7 @@ jobs:
5759
!in_block
5860
' "$input_file" > "$temp_file" && mv "$temp_file" "$input_file"
5961
60-
- name: Split diffs into big and small packages
62+
- name: Split diffs
6163
run: |
6264
cargo mutants --in-diff git.diff --list > all_mutants.txt
6365
mkdir -p mutants_by_packages
@@ -72,7 +74,8 @@ jobs:
7274
fi
7375
done < all_mutants.txt
7476
75-
- id: check_packages_and_shards
77+
- name: Check packages and shards
78+
id: check_packages_and_shards
7679
run: |
7780
number_of_big_mutants=0
7881
number_of_small_mutants=0
@@ -129,7 +132,7 @@ jobs:
129132
runs-on: ubuntu-latest
130133

131134
steps:
132-
- name: Run pr differences mutants from actions - no shards, small packages
135+
- name: Run mutants on diffs
133136
uses: stacks-network/actions/mutation-testing/pr-differences@feat/mutation-testing
134137
with:
135138
package-dimension: "small"
@@ -150,7 +153,7 @@ jobs:
150153
shard: [0, 1, 2, 3]
151154

152155
steps:
153-
- name: Run pr differences mutants from actions - with shards, small packages
156+
- name: Run mutants on diffs
154157
uses: stacks-network/actions/mutation-testing/pr-differences@feat/mutation-testing
155158
with:
156159
shard: ${{ matrix.shard }}
@@ -167,7 +170,7 @@ jobs:
167170
runs-on: ubuntu-latest
168171

169172
steps:
170-
- name: Run pr differences mutants from actions - no shards, big packages
173+
- name: Run Run mutants on diffs
171174
env:
172175
BITCOIND_TEST: 1
173176
RUST_BACKTRACE: full
@@ -191,7 +194,7 @@ jobs:
191194
shard: [0, 1, 2, 3, 4, 5, 6, 7]
192195

193196
steps:
194-
- name: Run pr differences mutants from actions - with shards, big packages
197+
- name: Run mutants on diffs
195198
env:
196199
BITCOIND_TEST: 1
197200
RUST_BACKTRACE: full
@@ -216,10 +219,10 @@ jobs:
216219
]
217220

218221
steps:
219-
- name: Download all workflow run artifacts
222+
- name: Download artifacts
220223
uses: actions/download-artifact@v3
221224

222-
- name: Append output from all shards
225+
- name: Append output from shards
223226
run: |
224227
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")
225228
files=("missed.txt" "caught.txt" "timeout.txt" "unviable.txt")
@@ -263,7 +266,7 @@ jobs:
263266
264267
echo "$most_relevant_exit_code" > './mutants-shards/exit_code.txt'
265268
266-
- name: Print mutants and handle exit codes
269+
- name: Print mutants
267270
run: |
268271
server_url="${{ github.server_url }}"
269272
organisation="${{ github.repository_owner }}"

0 commit comments

Comments
 (0)