1
1
name : CI
2
2
3
- permissions : read-all
3
+ permissions : {}
4
4
5
5
on :
6
6
push :
12
12
tests :
13
13
name : Tests on PHP ${{ matrix.php }} ${{ matrix.dependencies }}
14
14
runs-on : ubuntu-24.04
15
+ permissions :
16
+ contents : read
15
17
services :
16
18
redis :
17
19
image : redis
23
25
dependencies : ['--ignore-platform-req=php', '--prefer-lowest --prefer-stable --ignore-platform-req=php']
24
26
steps :
25
27
- name : Checkout
26
- uses : actions/checkout@v4
27
- - uses : shivammathur/setup-php@2.32.0
28
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
29
+ with :
30
+ persist-credentials : false
31
+ - uses : shivammathur/setup-php@9e72090525849c5e82e596468b86eb55e9cc5401 # 2.32.0
28
32
with :
29
33
php-version : ${{ matrix.php }}
30
34
extensions : mbstring, redis, apcu
41
45
env :
42
46
REDIS_PORT : ${{ job.services.redis.ports['6379'] }}
43
47
- name : Upload coverage to Codecov
44
- uses : codecov/codecov-action@v5.1.2
48
+ uses : codecov/codecov-action@1e68e06f1dbfde0e4cefc87efeba9e4643565303 # v5.1.2
45
49
with :
46
- file : ./coverage.xml
50
+ files : ./coverage.xml
47
51
mutation_testing :
48
52
name : Mutation testing
49
53
runs-on : ubuntu-24.04
54
58
- 6379/tcp
55
59
steps :
56
60
- name : Checkout
57
- uses : actions/checkout@v4
58
- - uses : shivammathur/setup-php@2.32.0
61
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
62
+ with :
63
+ persist-credentials : false
64
+ - uses : shivammathur/setup-php@9e72090525849c5e82e596468b86eb55e9cc5401 # 2.32.0
59
65
with :
60
66
php-version : ' 8.2'
61
67
extensions : mbstring, redis, apcu
69
75
REDIS_PORT : ${{ job.services.redis.ports['6379'] }}
70
76
- name : Archive report
71
77
if : always()
72
- uses : actions/upload-artifact@v4
78
+ uses : actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
73
79
with :
74
80
name : Infection report
75
81
path : infection.log
81
87
php : ['8.2', '8.3', '8.4']
82
88
steps :
83
89
- name : Checkout
84
- uses : actions/checkout@v4
90
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
91
+ with :
92
+ persist-credentials : false
85
93
- name : Install dependencies
86
94
run : composer install --no-interaction --prefer-dist
87
95
- name : Start stack
@@ -104,8 +112,10 @@ jobs:
104
112
runs-on : ubuntu-24.04
105
113
steps :
106
114
- name : Checkout
107
- uses : actions/checkout@v4
108
- - uses : shivammathur/setup-php@2.32.0
115
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
116
+ with :
117
+ persist-credentials : false
118
+ - uses : shivammathur/setup-php@9e72090525849c5e82e596468b86eb55e9cc5401 # 2.32.0
109
119
with :
110
120
php-version : ' 8.2'
111
121
extensions : mbstring, redis, apcu
@@ -123,7 +133,9 @@ jobs:
123
133
runs-on : ubuntu-24.04
124
134
steps :
125
135
- name : Checkout
126
- uses : actions/checkout@v4
136
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
137
+ with :
138
+ persist-credentials : false
127
139
- name : Install dependencies
128
140
run : composer install --no-interaction --prefer-dist
129
141
- name : Composer Require Checker
@@ -137,7 +149,9 @@ jobs:
137
149
runs-on : ubuntu-24.04
138
150
steps :
139
151
- name : Checkout
140
- uses : actions/checkout@v4
152
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
153
+ with :
154
+ persist-credentials : false
141
155
- run : git fetch --depth=1 origin +refs/tags/*:refs/tags/*
142
156
# Disable (temporarily) CI check with Roave BC check
143
157
# See https://github.com/Nyholm/roave-bc-check-docker/issues/32
@@ -150,7 +164,9 @@ jobs:
150
164
runs-on : ubuntu-24.04
151
165
steps :
152
166
- name : Checkout
153
- uses : actions/checkout@v4
167
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
168
+ with :
169
+ persist-credentials : false
154
170
- name : Install nix
155
171
uses : cachix/install-nix-action@v30
156
172
with :
0 commit comments