Skip to content

Commit 8485e5f

Browse files
committed
ci: upgrade workflow
1 parent 63ab9cb commit 8485e5f

1 file changed

Lines changed: 17 additions & 11 deletions

File tree

.github/workflows/ci.yml

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,25 @@
11
name: CI
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
pull_request:
46

57
permissions:
68
contents: read
79
actions: read
8-
id-token: none
910

1011
jobs:
1112
composer:
1213
runs-on: ubuntu-latest
1314
strategy:
1415
matrix:
15-
php: [ 8.2, 8.3, 8.4 ]
16+
php: [ 8.2, 8.3, 8.4, 8.5 ]
1617

1718
steps:
18-
- uses: actions/checkout@v4
19+
- uses: actions/checkout@v6
1920

2021
- name: Cache Composer dependencies
21-
uses: actions/cache@v4
22+
uses: actions/cache@v5
2223
with:
2324
path: /tmp/composer-cache
2425
key: ${{ runner.os }}-${{ matrix.php }}-${{ hashFiles('**/composer.lock') }}
@@ -27,6 +28,7 @@ jobs:
2728
uses: php-actions/composer@v6
2829
with:
2930
php_version: ${{ matrix.php }}
31+
php_extensions: pcntl
3032

3133
- name: Archive build
3234
run: mkdir /tmp/github-actions/ && tar --exclude=".git" -cvf /tmp/github-actions/build.tar ./
@@ -42,7 +44,7 @@ jobs:
4244
needs: [ composer ]
4345
strategy:
4446
matrix:
45-
php: [ 8.2, 8.3, 8.4 ]
47+
php: [ 8.2, 8.3, 8.4, 8.5 ]
4648

4749
outputs:
4850
coverage: ${{ steps.store-coverage.outputs.coverage_text }}
@@ -77,7 +79,7 @@ jobs:
7779
needs: [ phpunit ]
7880
strategy:
7981
matrix:
80-
php: [ 8.2, 8.3, 8.4 ]
82+
php: [ 8.2, 8.3, 8.4, 8.5 ]
8183

8284
steps:
8385
- uses: actions/checkout@v4
@@ -92,13 +94,15 @@ jobs:
9294

9395
- name: Upload to Codecov
9496
uses: codecov/codecov-action@v5
97+
with:
98+
token: ${{ secrets.CODECOV_TOKEN }}
9599

96100
phpstan:
97101
runs-on: ubuntu-latest
98102
needs: [ composer ]
99103
strategy:
100104
matrix:
101-
php: [ 8.2, 8.3, 8.4 ]
105+
php: [ 8.2, 8.3, 8.4, 8.5 ]
102106

103107
steps:
104108
- uses: actions/download-artifact@v4
@@ -114,13 +118,15 @@ jobs:
114118
with:
115119
php_version: ${{ matrix.php }}
116120
path: src/
121+
level: 6
122+
memory_limit: 256M
117123

118124
phpmd:
119125
runs-on: ubuntu-latest
120126
needs: [ composer ]
121127
strategy:
122128
matrix:
123-
php: [ 8.2, 8.3, 8.4 ]
129+
php: [ 8.2, 8.3, 8.4, 8.5 ]
124130

125131
steps:
126132
- uses: actions/download-artifact@v4
@@ -132,7 +138,7 @@ jobs:
132138
run: tar -xvf /tmp/github-actions/build.tar ./
133139

134140
- name: PHP Mess Detector
135-
uses: php-actions/phpmd@v2
141+
uses: php-actions/phpmd@v1
136142
with:
137143
php_version: ${{ matrix.php }}
138144
path: src/
@@ -144,7 +150,7 @@ jobs:
144150
needs: [ composer ]
145151
strategy:
146152
matrix:
147-
php: [ 8.2, 8.3, 8.4 ]
153+
php: [ 8.2, 8.3, 8.4, 8.5 ]
148154

149155
steps:
150156
- uses: actions/download-artifact@v4

0 commit comments

Comments
 (0)