11#
2- # JBZoo - Toolbox
2+ # JBZoo Toolbox - Toolbox.
33#
4- # This file is part of the JBZoo project.
4+ # 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 Toolbox
98# @license MIT
109# @copyright Copyright (C) JBZoo.com, All rights reserved.
11- # @link https://github.com/JBZoo/Toolbox
10+ # @see https://github.com/JBZoo/Toolbox
1211#
1312
1413name : CI
2120 branches :
2221 - ' master'
2322 schedule :
24- - cron : ' 45 */8 * * *'
23+ - cron : ' 30 */8 * * *'
2524
2625env :
2726 COLUMNS : 120
@@ -35,29 +34,39 @@ jobs:
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
69+ continue-on-error : true
6170 with :
6271 name : PHPUnit - ${{ matrix.php-version }} - ${{ matrix.coverage }}
6372 path : build/
@@ -68,29 +77,30 @@ jobs:
6877 runs-on : ubuntu-latest
6978 strategy :
7079 matrix :
71- php-version : [ 7.4, 8.0 , 8.1 ]
80+ php-version : [ 8.1 , 8.2 ]
7281 steps :
7382 - name : Checkout code
74- uses : actions/checkout@v2
83+ uses : actions/checkout@v3
7584 with :
7685 fetch-depth : 0
7786
7887 - name : Setup PHP
7988 uses : shivammathur/setup-php@v2
8089 with :
8190 php-version : ${{ matrix.php-version }}
82- extensions : ast
91+ coverage : none
8392 tools : composer
93+ extensions : ast
8494
8595 - name : Build the Project
8696 run : make update --no-print-directory
8797
8898 - name : 👍 Code Quality
89- continue-on-error : true
9099 run : make codestyle --no-print-directory
91100
92101 - name : Upload Artifacts
93- uses : actions/upload-artifact@v2
102+ uses : actions/upload-artifact@v3
103+ continue-on-error : true
94104 with :
95105 name : Linters - ${{ matrix.php-version }}
96106 path : build/
@@ -101,10 +111,10 @@ jobs:
101111 runs-on : ubuntu-latest
102112 strategy :
103113 matrix :
104- php-version : [ 7.4, 8.0 , 8.1 ]
114+ php-version : [ 8.1 , 8.2 ]
105115 steps :
106116 - name : Checkout code
107- uses : actions/checkout@v2
117+ uses : actions/checkout@v3
108118 with :
109119 fetch-depth : 0
110120
@@ -114,6 +124,7 @@ jobs:
114124 php-version : ${{ matrix.php-version }}
115125 coverage : xdebug
116126 tools : composer
127+ extensions : ast
117128
118129 - name : Build the Project
119130 run : make update --no-print-directory
@@ -122,7 +133,8 @@ jobs:
122133 run : make report-all --no-print-directory
123134
124135 - name : Upload Artifacts
125- uses : actions/upload-artifact@v2
136+ uses : actions/upload-artifact@v3
137+ continue-on-error : true
126138 with :
127139 name : Reports - ${{ matrix.php-version }}
128140 path : build/
0 commit comments