@@ -2,41 +2,36 @@ name: Build
22
33on :
44 push :
5- branches :
6- - master
7- - release/*
8- - issue-*
5+ paths-ignore : ['*.md']
96 pull_request :
10- branches :
11- - master
12- schedule :
13- - cron : 0 7 * * 1
7+ paths-ignore : ['*.md']
8+ branches : [master]
149
1510jobs :
1611 analysis :
1712 runs-on : ubuntu-latest
1813 strategy :
1914 matrix :
20- php : [7.4 ]
15+ php : [8.0 ]
2116 steps :
2217 - uses : actions/checkout@v1
18+ - name : Setup PHP
19+ uses : shivammathur/setup-php@v2
20+ with :
21+ php-version : ${{ matrix.php }}
22+ extensions : dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv
23+ coverage : none
2324 - name : Cache composer dependencies
2425 uses : actions/cache@v2
2526 env :
26- cache-name : cache -gcr-worker-laravel-latest
27+ cache-name : laravel -gcr-worker-analysis
2728 with :
2829 path : ~/.composer
29- key : ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/composer.json') }}
30+ key : php- ${{ matrix.php }}-build-${{ env.cache-name }}-${{ hashFiles('**/composer.json') }}
3031 restore-keys : |
31- ${{ runner.os }}-build-${{ env.cache-name }}-
32- ${{ runner.os }}-build-
33- ${{ runner.os }}-
34- - name : Setup PHP
35- uses : shivammathur/setup-php@v2
36- with :
37- php-version : ${{ matrix.php }}
38- extensions : dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
39- coverage : none
32+ php-${{ matrix.php }}-build-${{ env.cache-name }}-
33+ php-${{ matrix.php }}-build-
34+ php-${{ matrix.php }}-
4035 - name : Install composer dependencies
4136 run : composer install --prefer-dist
4237 - name : Run phpstan analysis
@@ -45,115 +40,73 @@ jobs:
4540 run : composer phpmd-analysis
4641 - name : Run phpcpd analysis
4742 run : vendor/bin/phpcpd --min-lines=3 --min-tokens=36 src/
48- laravel57 :
49- needs : [ analysis ]
50- runs-on : ubuntu-latest
51- strategy :
52- matrix :
53- php : [ 7.2, 7.3, 7.4 ]
54- steps :
55- - uses : actions/checkout@v1
56- - name : Setup PHP
57- uses : shivammathur/setup-php@v2
58- with :
59- php-version : ${{ matrix.php }}
60- extensions : dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
61- coverage : none
62- - name : Update laravel version
63- run : composer require "laravel/framework:5.7.*" "orchestra/testbench:3.7.*" --no-update
64- - name : Remove some dev dependencies
65- run : composer remove "ekino/phpstan-banned-code" "nunomaduro/larastan" "phpmd/phpmd" "phpstan/phpstan-deprecation-rules" "sebastian/phpcpd" --dev --no-update
66- - name : Install composer dependencies
67- run : composer install --prefer-dist
68- - name : Run the test suite
69- run : phpdbg -qrr -dmemory_limit=3G vendor/bin/phpunit
70- laravel58 :
71- needs : [ analysis ]
43+ laravel8 :
44+ needs : [analysis]
7245 runs-on : ubuntu-latest
7346 strategy :
7447 matrix :
75- php : [ 7.2, 7.3, 7.4 ]
48+ php : [7.4, 8.0, 8.1 ]
7649 steps :
7750 - uses : actions/checkout@v1
7851 - name : Setup PHP
7952 uses : shivammathur/setup-php@v2
8053 with :
8154 php-version : ${{ matrix.php }}
82- extensions : dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
55+ extensions : dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv
8356 coverage : none
84- - name : Update laravel version
85- run : composer require "laravel/framework:5.8.* " "orchestra/testbench:3.8.* " --no-update
57+ - name : Force update laravel version
58+ run : composer require "laravel/framework:^8.0 " "orchestra/testbench:^6.0 " --no-update
8659 - name : Remove some dev dependencies
8760 run : composer remove "ekino/phpstan-banned-code" "nunomaduro/larastan" "phpmd/phpmd" "phpstan/phpstan-deprecation-rules" "sebastian/phpcpd" --dev --no-update
88- - name : Install composer dependencies
89- run : composer install --prefer-dist
90- - name : Run the test suite
91- run : phpdbg -qrr -dmemory_limit=3G vendor/bin/phpunit
92- laravel6 :
93- needs : [ analysis ]
94- runs-on : ubuntu-latest
95- strategy :
96- matrix :
97- php : [ 7.2, 7.3, 7.4 ]
98- steps :
99- - uses : actions/checkout@v1
100- - name : Setup PHP
101- uses : shivammathur/setup-php@v2
61+ - name : Cache composer dependencies
62+ uses : actions/cache@v2
63+ env :
64+ cache-name : laravel-gcr-worker-laravel8
10265 with :
103- php-version : ${{ matrix.php }}
104- extensions : dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
105- coverage : none
106- - name : Update laravel version
107- run : composer require "laravel/framework:^6.0" "orchestra/testbench:^4.0" --no-update
108- - name : Remove some dev dependencies
109- run : composer remove "ekino/phpstan-banned-code" "nunomaduro/larastan" "phpmd/phpmd" "phpstan/phpstan-deprecation-rules" "sebastian/phpcpd" --dev --no-update
66+ path : ~/.composer
67+ key : php-${{ matrix.php }}-build-${{ env.cache-name }}-${{ hashFiles('**/composer.json') }}
68+ restore-keys : |
69+ php-${{ matrix.php }}-build-${{ env.cache-name }}-
70+ php-${{ matrix.php }}-build-
71+ php-${{ matrix.php }}-
11072 - name : Install composer dependencies
11173 run : composer install --prefer-dist
11274 - name : Run the test suite
11375 run : phpdbg -qrr -dmemory_limit=3G vendor/bin/phpunit
114- laravel7 :
76+ laravel9 :
11577 needs : [ analysis ]
11678 runs-on : ubuntu-latest
11779 strategy :
11880 matrix :
119- php : [ 7.2, 7.3, 7.4 ]
81+ php : [ 8.1 ]
12082 steps :
12183 - uses : actions/checkout@v1
12284 - name : Setup PHP
12385 uses : shivammathur/setup-php@v2
12486 with :
12587 php-version : ${{ matrix.php }}
126- extensions : dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
88+ extensions : dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv
12789 coverage : none
128- - name : Update laravel version
129- run : composer require "laravel/framework:^7 .0" "orchestra/testbench:^5 .0" --no-update
90+ - name : Force update laravel version
91+ run : composer require "laravel/framework:^9 .0" "orchestra/testbench:^7 .0" --no-update
13092 - name : Remove some dev dependencies
13193 run : composer remove "ekino/phpstan-banned-code" "nunomaduro/larastan" "phpmd/phpmd" "phpstan/phpstan-deprecation-rules" "sebastian/phpcpd" --dev --no-update
132- - name : Install composer dependencies
133- run : composer install --prefer-dist
134- - name : Run the test suite
135- run : phpdbg -qrr -dmemory_limit=3G vendor/bin/phpunit
136- laravel8 :
137- needs : [analysis]
138- runs-on : ubuntu-latest
139- strategy :
140- matrix :
141- php : [7.4]
142- steps :
143- - uses : actions/checkout@v1
144- - name : Setup PHP
145- uses : shivammathur/setup-php@v2
94+ - name : Cache composer dependencies
95+ uses : actions/cache@v2
96+ env :
97+ cache-name : laravel-gcr-worker-laravel9
14698 with :
147- php-version : ${{ matrix.php }}
148- extensions : dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
149- coverage : none
150- - name : Remove some dev dependencies
151- run : composer remove "ekino/phpstan-banned-code" "nunomaduro/larastan" "phpmd/phpmd" "phpstan/phpstan-deprecation-rules" "sebastian/phpcpd" --dev --no-update
99+ path : ~/.composer
100+ key : php-${{ matrix.php }}-build-${{ env.cache-name }}-${{ hashFiles('**/composer.json') }}
101+ restore-keys : |
102+ php-${{ matrix.php }}-build-${{ env.cache-name }}-
103+ php-${{ matrix.php }}-build-
104+ php-${{ matrix.php }}-
152105 - name : Install composer dependencies
153106 run : composer install --prefer-dist
154107 - name : Run the test suite
155108 run : phpdbg -qrr -dmemory_limit=3G vendor/bin/phpunit
156- laravel8 -cov :
109+ laravel9 -cov :
157110 needs : [ analysis ]
158111 runs-on : ubuntu-latest
159112 strategy :
@@ -176,8 +129,21 @@ jobs:
176129 uses : shivammathur/setup-php@v2
177130 with :
178131 php-version : ${{ matrix.php }}
179- extensions : dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
132+ extensions : dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv
180133 coverage : none
134+ - name : Force update laravel version
135+ run : composer require "laravel/framework:^9.0" "orchestra/testbench:^7.0" --no-update
136+ - name : Cache composer dependencies
137+ uses : actions/cache@v2
138+ env :
139+ cache-name : laravel-gcr-worker-laravel9cov
140+ with :
141+ path : ~/.composer
142+ key : php-${{ matrix.php }}-build-${{ env.cache-name }}-${{ hashFiles('**/composer.json') }}
143+ restore-keys : |
144+ php-${{ matrix.php }}-build-${{ env.cache-name }}-
145+ php-${{ matrix.php }}-build-
146+ php-${{ matrix.php }}-
181147 - name : Install composer dependencies
182148 run : composer install --prefer-dist
183149 - name : Run the Coverage test suite
0 commit comments