10
10
paths :
11
11
- ' **.rs'
12
12
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'
22
13
23
14
concurrency :
24
15
group : pr-differences-${{ github.head_ref || github.ref || github.run_id }}
25
16
# Always cancel duplicate jobs
26
17
cancel-in-progress : true
27
18
28
19
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
+
29
36
# Check and output whether to run big (`stacks-node`/`stackslib`) or small (others) packages with or without shards
30
37
check-big-packages-and-shards :
31
38
name : Check Packages and Shards
39
+ needs : check-access-permissions
32
40
33
41
runs-on : ubuntu-latest
34
42
@@ -40,10 +48,13 @@ jobs:
40
48
run_small_packages : ${{ steps.check_packages_and_shards.outputs.run_small_packages }}
41
49
small_packages_with_shards : ${{ steps.check_packages_and_shards.outputs.small_packages_with_shards }}
42
50
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 }}
43
52
44
53
steps :
45
54
- id : check_packages_and_shards
46
55
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 }}
47
58
48
59
# Mutation testing - Execute on PR on small packages that have functions modified (normal run, no shards)
49
60
pr-differences-mutants-small-normal :
@@ -230,3 +241,4 @@ jobs:
230
241
small_packages : ${{ needs.check-big-packages-and-shards.outputs.run_small_packages }}
231
242
shards_for_small_packages : ${{ needs.check-big-packages-and-shards.outputs.small_packages_with_shards }}
232
243
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