Skip to content

Commit 9758748

Browse files
authored
[ACTIONS] Upgrade outdated GH actions
1 parent fb16416 commit 9758748

File tree

1 file changed

+42
-35
lines changed

1 file changed

+42
-35
lines changed

.github/workflows/checks.yml

Lines changed: 42 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,18 @@ on:
66
- master
77
jobs:
88
build-source:
9-
runs-on: ubuntu-20.04
9+
runs-on: ubuntu-22.04
1010
steps:
1111
-
1212
name: Checkout
13-
uses: actions/checkout@v2
13+
uses: actions/checkout@v4
1414
-
1515
name: Install phars
1616
run: |
1717
make install-phars
1818
-
1919
name: Upload source directory
20-
uses: actions/upload-artifact@v2
20+
uses: actions/upload-artifact@v4
2121
with:
2222
name: source
2323
path: .
@@ -27,31 +27,34 @@ jobs:
2727
strategy:
2828
matrix:
2929
php:
30-
-
31-
version: '7.4'
32-
xdebug: '3.1.5'
3330
-
3431
version: '8.0'
35-
xdebug: '3.1.5'
32+
xdebug: '3.4.0'
3633
-
3734
version: '8.1'
38-
xdebug: '3.1.5'
35+
xdebug: '3.4.0'
3936
-
4037
version: '8.2'
41-
xdebug: '3.2.1'
42-
runs-on: ubuntu-20.04
38+
xdebug: '3.4.0'
39+
-
40+
version: '8.3'
41+
xdebug: '3.4.0'
42+
-
43+
version: '8.4'
44+
xdebug: '3.4.0'
45+
runs-on: ubuntu-22.04
4346
steps:
4447
-
4548
name: Download sources
46-
uses: actions/download-artifact@v4.1.7
49+
uses: actions/download-artifact@v4
4750
with:
4851
name: source
4952
-
5053
name: Set up Docker Buildx
51-
uses: docker/setup-buildx-action@v1
54+
uses: docker/setup-buildx-action@v3
5255
-
5356
name: Build
54-
uses: docker/build-push-action@v2
57+
uses: docker/build-push-action@v6
5558
with:
5659
context: .
5760
file: ./Dockerfile
@@ -75,15 +78,12 @@ jobs:
7578
name: php-avro-serde-${{ matrix.php.version }}
7679
path: php-avro-serde-${{ matrix.php.version }}.tgz
7780
ci-checks:
78-
runs-on: ubuntu-20.04
81+
runs-on: ubuntu-22.04
7982
needs:
8083
- php-xdebug-docker
8184
strategy:
8285
matrix:
8386
php:
84-
-
85-
version: '7.4'
86-
composer: --prefer-lowest
8787
-
8888
version: '8.0'
8989
composer: --prefer-lowest
@@ -94,8 +94,11 @@ jobs:
9494
version: '8.2'
9595
composer: --prefer-lowest
9696
-
97-
version: '7.4'
98-
composer: --prefer-stable
97+
version: '8.3'
98+
composer: --prefer-lowest
99+
-
100+
version: '8.4'
101+
composer: --prefer-lowest
99102
-
100103
version: '8.0'
101104
composer: --prefer-stable
@@ -105,18 +108,24 @@ jobs:
105108
-
106109
version: '8.2'
107110
composer: --prefer-stable
111+
-
112+
version: '8.3'
113+
composer: --prefer-stable
114+
-
115+
version: '8.4'
116+
composer: --prefer-stable
108117
steps:
109118
-
110119
name: Download sources
111-
uses: actions/download-artifact@v4.1.7
120+
uses: actions/download-artifact@v4
112121
with:
113122
name: source
114123
-
115124
name: Set up Docker Buildx
116-
uses: docker/setup-buildx-action@v1
125+
uses: docker/setup-buildx-action@v3
117126
-
118127
name: Download docker image
119-
uses: actions/download-artifact@v4.1.7
128+
uses: actions/download-artifact@v4
120129
with:
121130
name: php-avro-serde-${{ matrix.php.version }}
122131
-
@@ -131,7 +140,7 @@ jobs:
131140
composer update --no-interaction --no-scripts --no-ansi ${{ matrix.php.composer }}
132141
-
133142
name: Run Static analysis
134-
if: ${{ matrix.php.version == '7.4' && matrix.php.composer == '--prefer-stable' }}
143+
if: ${{ matrix.php.version == '8.3' && matrix.php.composer == '--prefer-stable' }}
135144
run: |
136145
chmod a+x bin/phpstan.phar bin/php-cs-fixer.phar
137146
docker run -i --rm --net=host --sig-proxy=true --pid=host \
@@ -143,58 +152,56 @@ jobs:
143152
src test
144153
-
145154
name: Run PHPUnit
146-
if: ${{ !(matrix.php.version == '7.4' && matrix.php.composer == '--prefer-stable') }}
155+
if: ${{ !(matrix.php.version == '8.3' && matrix.php.composer == '--prefer-stable') }}
147156
run: |
148157
docker run -i --rm --net=host --sig-proxy=true --pid=host \
149158
-v "${GITHUB_WORKSPACE}":"${GITHUB_WORKSPACE}" -w "${GITHUB_WORKSPACE}" php-avro-serde:${{ matrix.php.version }} \
150159
vendor/bin/phpunit --exclude-group integration
151160
-
152161
name: Run PHPUnit with Coverage Report
153-
if: ${{ matrix.php.version == '7.4' && matrix.php.composer == '--prefer-stable' }}
162+
if: ${{ matrix.php.version == '8.3' && matrix.php.composer == '--prefer-stable' }}
154163
run: |
155164
mkdir -p build
156165
docker run -i --rm --net=host --sig-proxy=true --pid=host \
157166
-v "${GITHUB_WORKSPACE}":"${GITHUB_WORKSPACE}" -w "${GITHUB_WORKSPACE}" php-avro-serde:${{ matrix.php.version }} \
158167
-d xdebug.mode=coverage vendor/bin/phpunit --exclude-group integration --coverage-clover=build/coverage.clover --coverage-text
159168
- name: Publish code coverage
160-
if: ${{ matrix.php.version == '7.4' && matrix.php.composer == '--prefer-stable' && github.event_name == 'push' && github.ref == 'refs/heads/master' }}
161-
uses: paambaati/codeclimate-action@v3.0.0
169+
if: ${{ matrix.php.version == '8.3' && matrix.php.composer == '--prefer-stable' && github.event_name == 'push' && github.ref == 'refs/heads/master' }}
170+
uses: paambaati/codeclimate-action@v9
162171
env:
163172
CC_TEST_REPORTER_ID: ${{secrets.CODE_CLIMATE_REPORTER_ID}}
164173
with:
165174
coverageLocations: |
166175
${{github.workspace}}/build/coverage.clover:clover
167176
confluent-integration:
168-
runs-on: ubuntu-20.04
177+
runs-on: ubuntu-22.04
169178
needs:
170179
- php-xdebug-docker
171180
strategy:
172181
matrix:
173182
confluent:
174183
-
175184
version: latest
176-
-
177-
version: 4.1.4
178185
-
179186
version: 5.5.2
180187
steps:
181188
-
182189
name: Download sources
183-
uses: actions/download-artifact@v4.1.7
190+
uses: actions/download-artifact@v4
184191
with:
185192
name: source
186193
-
187194
name: Set up Docker Buildx
188-
uses: docker/setup-buildx-action@v1
195+
uses: docker/setup-buildx-action@v3
189196
-
190197
name: Download docker image
191-
uses: actions/download-artifact@v4.1.7
198+
uses: actions/download-artifact@v4
192199
with:
193-
name: php-avro-serde-7.4
200+
name: php-avro-serde-8.3
194201
-
195202
name: Load docker image
196203
run: |
197-
docker load -i php-avro-serde-7.4.tgz
204+
docker load -i php-avro-serde-8.3.tgz
198205
-
199206
name: Install vendors
200207
run: |

0 commit comments

Comments
 (0)