66 - master
77jobs:
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
23+ include-hidden-files: true
2324 path: .
2425 php-xdebug-docker:
2526 needs:
@@ -29,26 +30,29 @@ jobs:
2930 php:
3031 -
3132 version: '8.1'
32- xdebug: '3.1.5 '
33+ xdebug: '3.4.0 '
3334 -
3435 version: '8.2'
35- xdebug: '3.2.1 '
36+ xdebug: '3.4.0 '
3637 -
3738 version: '8.3'
38- xdebug: '3.3.1'
39- runs-on: ubuntu-20.04
39+ xdebug: '3.4.0'
40+ -
41+ version: '8.4'
42+ xdebug: '3.4.0'
43+ runs-on: ubuntu-22.04
4044 steps:
4145 -
4246 name: Download sources
43- uses: actions/download-artifact@v4.1.7
47+ uses: actions/download-artifact@v4
4448 with:
4549 name: source
4650 -
4751 name: Set up Docker Buildx
48- uses: docker/setup-buildx-action@v1
52+ uses: docker/setup-buildx-action@v3
4953 -
5054 name: Build
51- uses: docker/build-push-action@v2
55+ uses: docker/build-push-action@v6
5256 with:
5357 context: .
5458 file: ./Dockerfile
@@ -67,12 +71,12 @@ jobs:
6771 docker save php-avro-serde:${{ matrix.php.version }} -o php-avro-serde-${{ matrix.php.version }}.tgz
6872 -
6973 name: Upload docker image
70- uses: actions/upload-artifact@v2
74+ uses: actions/upload-artifact@v4
7175 with:
7276 name: php-avro-serde-${{ matrix.php.version }}
7377 path: php-avro-serde-${{ matrix.php.version }}.tgz
7478 ci-checks:
75- runs-on: ubuntu-20 .04
79+ runs-on: ubuntu-22 .04
7680 needs:
7781 - php-xdebug-docker
7882 strategy:
@@ -87,27 +91,33 @@ jobs:
8791 -
8892 version: '8.3'
8993 composer: --prefer-lowest
94+ -
95+ version: '8.4'
96+ composer: --prefer-lowest
9097 -
9198 version: '8.1'
9299 composer: --prefer-stable
93100 -
94101 version: '8.2'
95102 composer: --prefer-stable
96103 -
97- version: '8.2'
104+ version: '8.3'
105+ composer: --prefer-stable
106+ -
107+ version: '8.4'
98108 composer: --prefer-stable
99109 steps:
100110 -
101111 name: Download sources
102- uses: actions/download-artifact@v4.1.7
112+ uses: actions/download-artifact@v4
103113 with:
104114 name: source
105115 -
106116 name: Set up Docker Buildx
107- uses: docker/setup-buildx-action@v1
117+ uses: docker/setup-buildx-action@v3
108118 -
109119 name: Download docker image
110- uses: actions/download-artifact@v4.1.7
120+ uses: actions/download-artifact@v4
111121 with:
112122 name: php-avro-serde-${{ matrix.php.version }}
113123 -
@@ -122,75 +132,73 @@ jobs:
122132 composer update --no-interaction --no-scripts --no-ansi ${{ matrix.php.composer }}
123133 -
124134 name: Run Static analysis
125- if: ${{ matrix.php.version == '7.4 ' && matrix.php.composer == '--prefer-stable' }}
135+ if: ${{ matrix.php.version == '8.3 ' && matrix.php.composer == '--prefer-stable' }}
126136 run: |
127137 chmod a+x bin/phpstan.phar bin/php-cs-fixer.phar
128138 docker run -i --rm --net=host --sig-proxy=true --pid=host \
129139 -v "${GITHUB_WORKSPACE}":"${GITHUB_WORKSPACE}" -w "${GITHUB_WORKSPACE}" php-avro-serde:${{ matrix.php.version }} \
130- bin/phpstan.phar analyse
140+ bin/phpstan.phar analyse --memory-limit 4G
131141 docker run -i --rm --net=host --sig-proxy=true --pid=host \
132142 -v "${GITHUB_WORKSPACE}":"${GITHUB_WORKSPACE}" -w "${GITHUB_WORKSPACE}" php-avro-serde:${{ matrix.php.version }} \
133143 bin/php-cs-fixer.phar fix --config=.php-cs-fixer.dist.php --diff -v --dry-run --path-mode=intersection --allow-risky=yes \
134144 src test
135145 -
136146 name: Run PHPUnit
137- if: ${{ !(matrix.php.version == '7.4 ' && matrix.php.composer == '--prefer-stable') }}
147+ if: ${{ !(matrix.php.version == '8.3 ' && matrix.php.composer == '--prefer-stable') }}
138148 run: |
139149 docker run -i --rm --net=host --sig-proxy=true --pid=host \
140150 -v "${GITHUB_WORKSPACE}":"${GITHUB_WORKSPACE}" -w "${GITHUB_WORKSPACE}" php-avro-serde:${{ matrix.php.version }} \
141151 vendor/bin/phpunit --exclude-group integration
142152 -
143153 name: Run PHPUnit with Coverage Report
144- if: ${{ matrix.php.version == '7.4 ' && matrix.php.composer == '--prefer-stable' }}
154+ if: ${{ matrix.php.version == '8.3 ' && matrix.php.composer == '--prefer-stable' }}
145155 run: |
146156 mkdir -p build
147157 docker run -i --rm --net=host --sig-proxy=true --pid=host \
148158 -v "${GITHUB_WORKSPACE}":"${GITHUB_WORKSPACE}" -w "${GITHUB_WORKSPACE}" php-avro-serde:${{ matrix.php.version }} \
149159 -d xdebug.mode=coverage vendor/bin/phpunit --exclude-group integration --coverage-clover=build/coverage.clover --coverage-text
150160 - name: Publish code coverage
151- if: ${{ matrix.php.version == '7.4 ' && matrix.php.composer == '--prefer-stable' && github.event_name == 'push' && github.ref == 'refs/heads/master' }}
152- uses: paambaati/codeclimate-action@v3.0.0
161+ if: ${{ matrix.php.version == '8.3 ' && matrix.php.composer == '--prefer-stable' && github.event_name == 'push' && github.ref == 'refs/heads/master' }}
162+ uses: paambaati/codeclimate-action@v9
153163 env:
154164 CC_TEST_REPORTER_ID: ${{secrets.CODE_CLIMATE_REPORTER_ID}}
155165 with:
156166 coverageLocations: |
157167 ${{github.workspace}}/build/coverage.clover:clover
158168 confluent-integration:
159- runs-on: ubuntu-20 .04
169+ runs-on: ubuntu-22 .04
160170 needs:
161171 - php-xdebug-docker
162172 strategy:
163173 matrix:
164174 confluent:
165175 -
166176 version: latest
167- -
168- version: 4.1.4
169177 -
170178 version: 5.5.2
171179 steps:
172180 -
173181 name: Download sources
174- uses: actions/download-artifact@v4.1.7
182+ uses: actions/download-artifact@v4
175183 with:
176184 name: source
177185 -
178186 name: Set up Docker Buildx
179- uses: docker/setup-buildx-action@v1
187+ uses: docker/setup-buildx-action@v3
180188 -
181189 name: Download docker image
182- uses: actions/download-artifact@v4.1.7
190+ uses: actions/download-artifact@v4
183191 with:
184- name: php-avro-serde-8.1
192+ name: php-avro-serde-8.3
185193 -
186194 name: Load docker image
187195 run: |
188- docker load -i php-avro-serde-8.1 .tgz
196+ docker load -i php-avro-serde-8.3 .tgz
189197 -
190198 name: Install vendors
191199 run: |
192200 docker run -i --rm --net=host --sig-proxy=true --pid=host \
193- -v "${GITHUB_WORKSPACE}":"${GITHUB_WORKSPACE}" -w "${GITHUB_WORKSPACE}" php-avro-serde:8.1 \
201+ -v "${GITHUB_WORKSPACE}":"${GITHUB_WORKSPACE}" -w "${GITHUB_WORKSPACE}" php-avro-serde:8.3 \
194202 composer update --no-interaction --no-scripts --no-ansi --prefer-stable
195203 -
196204 name: Run PHPUnit Integration
@@ -200,5 +208,5 @@ jobs:
200208 chmod a+x bin/wait-for-all.sh bin/wait-for-it.sh
201209 make platform
202210 docker run -i --rm --net=host --sig-proxy=true --pid=host \
203- -v "${GITHUB_WORKSPACE}":"${GITHUB_WORKSPACE}" -w "${GITHUB_WORKSPACE}" php-avro-serde:8.1 \
211+ -v "${GITHUB_WORKSPACE}":"${GITHUB_WORKSPACE}" -w "${GITHUB_WORKSPACE}" php-avro-serde:8.3 \
204212 vendor/bin/phpunit --group integration
0 commit comments