11#
2- # JBZoo Toolbox - Composer-Graph
2+ # JBZoo Toolbox - Composer-Graph.
33#
44# This file is part of the JBZoo Toolbox project.
55# For the full copyright and license information, please view the LICENSE
66# file that was distributed with this source code.
77#
8- # @package Composer-Graph
98# @license MIT
109# @copyright Copyright (C) JBZoo.com, All rights reserved.
11- # @link https://github.com/JBZoo/Composer-Graph
10+ # @see https://github.com/JBZoo/Composer-Graph
1211#
1312
1413name : CI
2120 branches :
2221 - ' master'
2322 schedule :
24- - cron : ' 15 */8 * * *'
23+ - cron : ' 39 */8 * * *'
2524
2625env :
2726 COLUMNS : 120
2827 TERM_PROGRAM : Hyper
2928
3029jobs :
31- phpunit-update :
32- name : PHPUnit (update)
30+ phpunit :
31+ name : PHPUnit
3332 runs-on : ubuntu-latest
3433 env :
3534 JBZOO_COMPOSER_UPDATE_FLAGS : ${{ matrix.composer_flags }}
3635 strategy :
3736 matrix :
38- php-version : [ 7.4, 8.0, 8.1 ]
37+ php-version : [ 8.1, 8.2 ]
38+ coverage : [ xdebug, none ]
3939 composer_flags : [ "--prefer-lowest", "" ]
4040 steps :
4141 - name : Checkout code
42- uses : actions/checkout@v2
42+ uses : actions/checkout@v3
4343 with :
4444 fetch-depth : 0
4545
4646 - name : Setup PHP
4747 uses : shivammathur/setup-php@v2
4848 with :
4949 php-version : ${{ matrix.php-version }}
50- coverage : xdebug
50+ coverage : ${{ matrix.coverage }}
5151 tools : composer
52+ extensions : ast
5253
5354 - name : Build the Project
5455 run : make update --no-print-directory
5556
5657 - name : 🧪 PHPUnit Tests
5758 run : make test --no-print-directory
5859
60+ - name : Uploading coverage to coveralls
61+ if : ${{ matrix.coverage == 'xdebug' }}
62+ continue-on-error : true
63+ env :
64+ COVERALLS_REPO_TOKEN : ${{ secrets.GITHUB_TOKEN }}
65+ run : make report-coveralls --no-print-directory || true
66+
5967 - name : Upload Artifacts
60- uses : actions/upload-artifact@v2
68+ uses : actions/upload-artifact@v3
6169 continue-on-error : true
6270 with :
63- name : PHPUnit (update) - ${{ matrix.php-version }} - ${{ matrix.coverage }} - ${{ matrix.build-way }}
71+ name : PHPUnit - ${{ matrix.php-version }} - ${{ matrix.coverage }}
6472 path : build/
6573
6674
67- # phpunit-build:
68- # name: PHPUnit (build)
69- # runs-on: ubuntu-latest
70- # strategy:
71- # matrix:
72- # php-version: [ 7.2, 7.3, 7.4, 8.0 ]
73- # steps:
74- # - name: Checkout code
75- # uses: actions/checkout@v2
76- # with:
77- # fetch-depth: 0
78- #
79- # - name: Setup PHP
80- # uses: shivammathur/setup-php@v2
81- # with:
82- # php-version: ${{ matrix.php-version }}
83- # coverage: xdebug
84- # tools: composer
85- #
86- # - name: Build the Project
87- # run: make build --no-print-directory
88- #
89- # - name: 🧪 PHPUnit Tests
90- # run: make test --no-print-directory
91- #
92- # - name: Uploading coverage to coveralls
93- # env:
94- # COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
95- # run: make report-coveralls --no-print-directory
96- #
97- # - name: Upload Artifacts
98- # uses: actions/upload-artifact@v2
99- # continue-on-error: true
100- # with:
101- # name: PHPUnit (build) - ${{ matrix.php-version }} - ${{ matrix.coverage }} - ${{ matrix.build-way }}
102- # path: build/
103-
104-
10575 linters :
10676 name : Linters
10777 runs-on : ubuntu-latest
10878 strategy :
10979 matrix :
110- php-version : [ 7.4, 8.0 , 8.1 ]
80+ php-version : [ 8.1 , 8.2 ]
11181 steps :
11282 - name : Checkout code
113- uses : actions/checkout@v2
83+ uses : actions/checkout@v3
11484 with :
11585 fetch-depth : 0
11686
11787 - name : Setup PHP
11888 uses : shivammathur/setup-php@v2
11989 with :
12090 php-version : ${{ matrix.php-version }}
91+ coverage : none
12192 tools : composer
12293 extensions : ast
12394
12899 run : make codestyle --no-print-directory
129100
130101 - name : Upload Artifacts
131- uses : actions/upload-artifact@v2
102+ uses : actions/upload-artifact@v3
132103 continue-on-error : true
133104 with :
134105 name : Linters - ${{ matrix.php-version }}
@@ -140,10 +111,10 @@ jobs:
140111 runs-on : ubuntu-latest
141112 strategy :
142113 matrix :
143- php-version : [ 7.4, 8.0 , 8.1 ]
114+ php-version : [ 8.1 , 8.2 ]
144115 steps :
145116 - name : Checkout code
146- uses : actions/checkout@v2
117+ uses : actions/checkout@v3
147118 with :
148119 fetch-depth : 0
149120
@@ -153,6 +124,7 @@ jobs:
153124 php-version : ${{ matrix.php-version }}
154125 coverage : xdebug
155126 tools : composer
127+ extensions : ast
156128
157129 - name : Build the Project
158130 run : make update --no-print-directory
@@ -161,7 +133,7 @@ jobs:
161133 run : make report-all --no-print-directory
162134
163135 - name : Upload Artifacts
164- uses : actions/upload-artifact@v2
136+ uses : actions/upload-artifact@v3
165137 continue-on-error : true
166138 with :
167139 name : Reports - ${{ matrix.php-version }}
0 commit comments