Skip to content

Commit f16beb3

Browse files
authored
Merge pull request #5083 from stacks-network/ci/custom-action-membership
CI Mutants: Action Membership Run
2 parents 1855e19 + abf5544 commit f16beb3

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

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

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,34 @@ on:
99
- ready_for_review
1010
paths:
1111
- '**.rs'
12+
workflow_dispatch:
1213

1314
concurrency:
1415
group: pr-differences-${{ github.head_ref || github.ref || github.run_id }}
1516
# Always cancel duplicate jobs
1617
cancel-in-progress: true
1718

1819
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+
1936
# Check and output whether to run big (`stacks-node`/`stackslib`) or small (others) packages with or without shards
2037
check-big-packages-and-shards:
2138
name: Check Packages and Shards
39+
needs: check-access-permissions
2240

2341
runs-on: ubuntu-latest
2442

@@ -30,10 +48,13 @@ jobs:
3048
run_small_packages: ${{ steps.check_packages_and_shards.outputs.run_small_packages }}
3149
small_packages_with_shards: ${{ steps.check_packages_and_shards.outputs.small_packages_with_shards }}
3250
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 }}
3352

3453
steps:
3554
- id: check_packages_and_shards
3655
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 }}
3758

3859
# Mutation testing - Execute on PR on small packages that have functions modified (normal run, no shards)
3960
pr-differences-mutants-small-normal:
@@ -220,3 +241,4 @@ jobs:
220241
small_packages: ${{ needs.check-big-packages-and-shards.outputs.run_small_packages }}
221242
shards_for_small_packages: ${{ needs.check-big-packages-and-shards.outputs.small_packages_with_shards }}
222243
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)