Skip to content

Commit 728177e

Browse files
committed
update the workflow dispatch to match the develop
branch one
1 parent d6678e7 commit 728177e

File tree

1 file changed

+21
-9
lines changed

1 file changed

+21
-9
lines changed

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

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,25 +10,33 @@ on:
1010
paths:
1111
- '**.rs'
1212
workflow_dispatch:
13-
inputs:
14-
ignore_timeout:
15-
description: "Ignore mutants timeout limit"
16-
required: false
17-
type: choice
18-
options:
19-
- true
20-
- false
21-
default: 'true'
2213

2314
concurrency:
2415
group: pr-differences-${{ github.head_ref || github.ref || github.run_id }}
2516
# Always cancel duplicate jobs
2617
cancel-in-progress: true
2718

2819
jobs:
20+
check-access-permissions:
21+
name: Check Access Permissions
22+
runs-on: ubuntu-latest
23+
24+
steps:
25+
- name: Check Access Permissions To Trigger This
26+
id: check_access_permissions
27+
uses: stacks-network/actions/team-membership@main
28+
with:
29+
username: ${{ github.actor }}
30+
team: 'blockchain-team'
31+
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
32+
33+
outputs:
34+
ignore_timeout: ${{ steps.check_access_permissions.outputs.is_team_member == 'true' && github.event_name == 'workflow_dispatch' }}
35+
2936
# Check and output whether to run big (`stacks-node`/`stackslib`) or small (others) packages with or without shards
3037
check-big-packages-and-shards:
3138
name: Check Packages and Shards
39+
needs: check-access-permissions
3240

3341
runs-on: ubuntu-latest
3442

@@ -40,10 +48,13 @@ jobs:
4048
run_small_packages: ${{ steps.check_packages_and_shards.outputs.run_small_packages }}
4149
small_packages_with_shards: ${{ steps.check_packages_and_shards.outputs.small_packages_with_shards }}
4250
run_stacks_signer: ${{ steps.check_packages_and_shards.outputs.run_stacks_signer }}
51+
too_many_mutants: ${{ steps.check_packages_and_shards.outputs.too_many_mutants }}
4352

4453
steps:
4554
- id: check_packages_and_shards
4655
uses: stacks-network/actions/stacks-core/mutation-testing/check-packages-and-shards@main
56+
with:
57+
ignore_timeout: ${{ needs.check-access-permissions.outputs.ignore_timeout }}
4758

4859
# Mutation testing - Execute on PR on small packages that have functions modified (normal run, no shards)
4960
pr-differences-mutants-small-normal:
@@ -230,3 +241,4 @@ jobs:
230241
small_packages: ${{ needs.check-big-packages-and-shards.outputs.run_small_packages }}
231242
shards_for_small_packages: ${{ needs.check-big-packages-and-shards.outputs.small_packages_with_shards }}
232243
stacks_signer: ${{ needs.check-big-packages-and-shards.outputs.run_stacks_signer }}
244+
too_many_mutants: ${{ needs.check-big-packages-and-shards.outputs.too_many_mutants }}

0 commit comments

Comments
 (0)