19
19
if : (github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository)
20
20
steps :
21
21
- name : Cancel Previous Runs
22
- uses : styfle/cancel-workflow-action@0.7.0
22
+ uses : styfle/cancel-workflow-action@0.12.1
23
23
with :
24
24
access_token : ${{ github.token }}
25
25
@@ -30,15 +30,15 @@ jobs:
30
30
- " kill_previous"
31
31
steps :
32
32
- name : " Set up PHP"
33
- uses : " shivammathur/setup-php@v2 "
33
+ uses : shivammathur/setup-php@9e72090525849c5e82e596468b86eb55e9cc5401 # 2.32.0
34
34
with :
35
35
php-version : " latest"
36
36
37
37
- name : " Checkout code"
38
- uses : " actions/checkout@v3 "
38
+ uses : " actions/checkout@v4.2.2 "
39
39
40
40
- name : " Install dependencies"
41
- uses : " ramsey/composer-install@v2 "
41
+ uses : ramsey/composer-install@a2636af0004d1c0499ffca16ac0b4cc94df70565 # 3.1.0
42
42
43
43
- name : Validate files
44
44
run : composer validate-files
@@ -50,15 +50,15 @@ jobs:
50
50
- " kill_previous"
51
51
steps :
52
52
- name : " Set up PHP"
53
- uses : " shivammathur/setup-php@v2 "
53
+ uses : shivammathur/setup-php@9e72090525849c5e82e596468b86eb55e9cc5401 # 2.32.0
54
54
with :
55
55
php-version : " latest"
56
56
57
57
- name : " Checkout code"
58
- uses : " actions/checkout@v3 "
58
+ uses : " actions/checkout@v4.2.2 "
59
59
60
60
- name : " Install dependencies"
61
- uses : " ramsey/composer-install@v2 "
61
+ uses : ramsey/composer-install@a2636af0004d1c0499ffca16ac0b4cc94df70565 # 3.1.0
62
62
63
63
- name : Check Style
64
64
run : composer check-code-style
@@ -70,17 +70,17 @@ jobs:
70
70
- " php_syntax_errors"
71
71
steps :
72
72
- name : Checkout code
73
- uses : actions/checkout@v3
73
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
74
74
75
75
- name : Setup PHP
76
- uses : shivammathur/setup-php@2.15 .0
76
+ uses : shivammathur/setup-php@9e72090525849c5e82e596468b86eb55e9cc5401 # 2.32 .0
77
77
with :
78
78
php-version : " latest"
79
79
coverage : none
80
80
tools : phpstan
81
81
82
82
- name : Install Composer dependencies
83
- uses : " ramsey/composer-install@v2 "
83
+ uses : ramsey/composer-install@a2636af0004d1c0499ffca16ac0b4cc94df70565 # 3.1.0
84
84
85
85
- name : Run PHPStan
86
86
run : vendor/bin/phpstan analyze
@@ -94,14 +94,14 @@ jobs:
94
94
fail-fast : false
95
95
matrix :
96
96
php-version :
97
- - " 8.2"
98
97
- " 8.3"
98
+ - " 8.4"
99
99
env :
100
100
extensions : curl, dom, imagick, json, libxml, mbstring
101
101
102
102
steps :
103
103
- name : Checkout code
104
- uses : actions/checkout@v3
104
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
105
105
106
106
- name : Set Up Imagick, FFmpeg & Exiftools
107
107
run : |
@@ -110,7 +110,7 @@ jobs:
110
110
sudo apt-get -y install ffmpeg libimage-exiftool-perl libmagickwand-dev
111
111
112
112
- name : Setup PHP Action
113
- uses : shivammathur/setup-php@2.15 .0
113
+ uses : shivammathur/setup-php@9e72090525849c5e82e596468b86eb55e9cc5401 # 2.32 .0
114
114
with :
115
115
php-version : ${{ matrix.php-version }}
116
116
extensions : ${{ env.extensions }}
@@ -121,7 +121,7 @@ jobs:
121
121
# Dependencies need to be installed to make sure the PHPUnit classes are recognized.
122
122
# @link https://github.com/marketplace/actions/install-php-dependencies-with-composer
123
123
- name : Install Composer dependencies
124
- uses : " ramsey/composer-install@v2 "
124
+ uses : ramsey/composer-install@a2636af0004d1c0499ffca16ac0b4cc94df70565 # 3.1.0
125
125
126
126
# - name: boot test server
127
127
# run: vendor/bin/http_test_server > /dev/null 2>&1 &
@@ -139,7 +139,9 @@ jobs:
139
139
run : composer run-tests
140
140
141
141
- name : Codecov
142
- uses : codecov/codecov-action@v1
142
+ uses : codecov/codecov-action@0565863a31f2c772f9f0395002a31e3f06189574 # v5.4.0
143
+ env :
144
+ CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
143
145
144
146
# support for mutation testing.
145
147
#
@@ -159,7 +161,7 @@ jobs:
159
161
# - "tests"
160
162
# steps:
161
163
# - name: Checkout code
162
- # uses: actions/checkout@v3
164
+ # uses: actions/checkout@v4.2.2
163
165
164
166
# - name: Set Up Imagick, FFmpeg & Exiftools
165
167
# run: |
@@ -168,7 +170,7 @@ jobs:
168
170
# sudo apt-get -y install ffmpeg libimage-exiftool-perl libmagickwand-dev
169
171
170
172
# - name: Setup PHP
171
- # uses: shivammathur/setup-php@2.15 .0
173
+ # uses: shivammathur/setup-php@2.32 .0
172
174
# with:
173
175
# php-version: "latest"
174
176
# coverage: xdebug
0 commit comments