77 runs-on : ubuntu-latest
88 strategy :
99 matrix :
10- php : [ 8.3, 8. 4 ]
10+ php : [ 8.4 ]
1111
1212 steps :
1313 - uses : actions/checkout@v4
@@ -31,63 +31,63 @@ jobs:
3131 with :
3232 name : build-artifact-${{ matrix.php }}
3333 path : /tmp/github-actions
34- #
35- # phpunit:
36- # runs-on: ubuntu-latest
37- # needs: [ composer ]
38- # strategy:
39- # matrix:
40- # php: [ 8.1, 8.2, 8.3 ]
41- #
42- # outputs:
43- # coverage: ${{ steps.store-coverage.outputs.coverage_text }}
44- #
45- # steps:
46- # - uses: actions/download-artifact@v4
47- # with:
48- # name: build-artifact-${{ matrix.php }}
49- # path: /tmp/github-actions
50- #
51- # - name: Extract build archive
52- # run: tar -xvf /tmp/github-actions/build.tar ./
53- #
54- # - name: PHP Unit tests
55- # uses: php-actions/phpunit@v3
56- # env:
57- # XDEBUG_MODE: cover
58- # with:
59- # version: 10
60- # php_version: ${{ matrix.php }}
61- # php_extensions: xdebug
62- # coverage_text: _coverage/coverage.txt
63- # coverage_clover: _coverage/clover.xml
64- #
65- # - name: Store coverage data
66- # uses: actions/upload-artifact@v4
67- # with:
68- # name: code-coverage-${{ matrix.php }}-${{ github.run_number }}
69- # path: _coverage
70- #
71- # coverage:
72- # runs-on: ubuntu-latest
73- # needs: [ phpunit ]
74- # strategy:
75- # matrix:
76- # php: [ 8.1, 8.2, 8.3 ]
77- #
78- # steps:
79- # - uses: actions/download-artifact@v4
80- # with:
81- # name: code-coverage-${{ matrix.php }}-${{ github.run_number }}
82- # path: _coverage
83- #
84- # - name: Output coverage
85- # run: cat "_coverage/coverage.txt"
86- #
87- # - name: Upload to Codecov
88- # uses: codecov/codecov-action@v4
89- # with:
90- # token: ${{ secrets.CODECOV_TOKEN }}
34+
35+ phpunit :
36+ runs-on : ubuntu-latest
37+ needs : [ composer ]
38+ strategy :
39+ matrix :
40+ php : [ 8.1, 8.2, 8.3 ]
41+
42+ outputs :
43+ coverage : ${{ steps.store-coverage.outputs.coverage_text }}
44+
45+ steps :
46+ - uses : actions/download-artifact@v4
47+ with :
48+ name : build-artifact-${{ matrix.php }}
49+ path : /tmp/github-actions
50+
51+ - name : Extract build archive
52+ run : tar -xvf /tmp/github-actions/build.tar ./
53+
54+ - name : PHP Unit tests
55+ uses : php-actions/phpunit@v3
56+ env :
57+ XDEBUG_MODE : cover
58+ with :
59+ version : 10
60+ php_version : ${{ matrix.php }}
61+ php_extensions : xdebug
62+ coverage_text : _coverage/coverage.txt
63+ coverage_clover : _coverage/clover.xml
64+
65+ - name : Store coverage data
66+ uses : actions/upload-artifact@v4
67+ with :
68+ name : code-coverage-${{ matrix.php }}-${{ github.run_number }}
69+ path : _coverage
70+
71+ coverage :
72+ runs-on : ubuntu-latest
73+ needs : [ phpunit ]
74+ strategy :
75+ matrix :
76+ php : [ 8.1, 8.2, 8.3 ]
77+
78+ steps :
79+ - uses : actions/download-artifact@v4
80+ with :
81+ name : code-coverage-${{ matrix.php }}-${{ github.run_number }}
82+ path : _coverage
83+
84+ - name : Output coverage
85+ run : cat "_coverage/coverage.txt"
86+
87+ - name : Upload to Codecov
88+ uses : codecov/codecov-action@v4
89+ with :
90+ token : ${{ secrets.CODECOV_TOKEN }}
9191#
9292# phpstan:
9393# runs-on: ubuntu-latest
0 commit comments