@@ -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
23- - name : Cache composer dependencies
24- uses : actions/cache@v2
25- env :
26- cache-name : cache-i18n-laravel-latest
27- with :
28- path : ~/.composer
29- key : ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/composer.json') }}
30- restore-keys : |
31- ${{ runner.os }}-build-${{ env.cache-name }}-
32- ${{ runner.os }}-build-
33- ${{ runner.os }}-
3418 - name : Setup PHP
3519 uses : shivammathur/setup-php@v2
3620 with :
3721 php-version : ${{ matrix.php }}
3822 extensions : dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv
3923 coverage : none
24+ - name : Cache composer dependencies
25+ uses : actions/cache@v2
26+ env :
27+ cache-name : laravel-i18n-analysis
28+ with :
29+ path : ~/.composer
30+ key : php-${{ matrix.php }}-build-${{ env.cache-name }}-${{ hashFiles('**/composer.json') }}
31+ restore-keys : |
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
5045 runs-on : ubuntu-latest
5146 strategy :
5247 matrix :
53- php : [8.0]
48+ php : [7.4, 8.0, 8.1 ]
5449 steps :
5550 - uses : actions/checkout@v1
5651 - name : Setup PHP
@@ -59,37 +54,87 @@ jobs:
5954 php-version : ${{ matrix.php }}
6055 extensions : dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv
6156 coverage : none
57+ - name : Cache composer dependencies
58+ uses : actions/cache@v2
59+ env :
60+ cache-name : laravel-i18n-laravel8
61+ with :
62+ path : ~/.composer
63+ key : php-${{ matrix.php }}-build-${{ env.cache-name }}-${{ hashFiles('**/composer.json') }}
64+ restore-keys : |
65+ php-${{ matrix.php }}-build-${{ env.cache-name }}-
66+ php-${{ matrix.php }}-build-
67+ php-${{ matrix.php }}-
68+ - name : Force update laravel version
69+ run : composer require "laravel/framework:^8.0" "orchestra/testbench:^6.0" --no-update
6270 - name : Remove some dev dependencies
6371 run : composer remove "ekino/phpstan-banned-code" "nunomaduro/larastan" "phpmd/phpmd" "phpstan/phpstan-deprecation-rules" "sebastian/phpcpd" --dev --no-update
6472 - name : Install composer dependencies
6573 run : composer install --prefer-dist
6674 - name : Run the test suite
6775 run : phpdbg -qrr -dmemory_limit=3G vendor/bin/phpunit
68- laravel8-cov :
76+ laravel9 :
6977 needs : [ analysis ]
7078 runs-on : ubuntu-latest
7179 strategy :
7280 matrix :
73- php : [ 7.4 ]
81+ php : [ 8.1 ]
7482 steps :
7583 - uses : actions/checkout@v1
84+ - name : Setup PHP
85+ uses : shivammathur/setup-php@v2
86+ with :
87+ php-version : ${{ matrix.php }}
88+ extensions : dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv
89+ coverage : none
7690 - name : Cache composer dependencies
7791 uses : actions/cache@v2
7892 env :
79- cache-name : cache -i18n-laravel-latest
93+ cache-name : laravel -i18n-laravel9
8094 with :
8195 path : ~/.composer
82- key : ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/composer.json') }}
96+ key : php- ${{ matrix.php }}-build-${{ env.cache-name }}-${{ hashFiles('**/composer.json') }}
8397 restore-keys : |
84- ${{ runner.os }}-build-${{ env.cache-name }}-
85- ${{ runner.os }}-build-
86- ${{ runner.os }}-
98+ php-${{ matrix.php }}-build-${{ env.cache-name }}-
99+ php-${{ matrix.php }}-build-
100+ php-${{ matrix.php }}-
101+ - name : Force update laravel version
102+ run : composer require "laravel/framework:^9.0" "orchestra/testbench:^7.0" --no-update
103+ - name : Remove some dev dependencies
104+ run : composer remove "ekino/phpstan-banned-code" "nunomaduro/larastan" "phpmd/phpmd" "phpstan/phpstan-deprecation-rules" "sebastian/phpcpd" --dev --no-update
105+ - name : Install composer dependencies
106+ run : composer install --prefer-dist
107+ - name : Run the test suite
108+ run : phpdbg -qrr -dmemory_limit=3G vendor/bin/phpunit
109+ laravel9-cov :
110+ needs : [ analysis ]
111+ runs-on : ubuntu-latest
112+ strategy :
113+ matrix :
114+ php : [ 8.0 ]
115+ steps :
116+ - uses : actions/checkout@v1
87117 - name : Setup PHP
88118 uses : shivammathur/setup-php@v2
89119 with :
90120 php-version : ${{ matrix.php }}
91121 extensions : dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv
92122 coverage : none
123+ - name : Cache composer dependencies
124+ uses : actions/cache@v2
125+ env :
126+ cache-name : laravel-i18n-laravel9
127+ with :
128+ path : ~/.composer
129+ key : php-${{ matrix.php }}-build-${{ env.cache-name }}-${{ hashFiles('**/composer.json') }}
130+ restore-keys : |
131+ php-${{ matrix.php }}-build-${{ env.cache-name }}-
132+ php-${{ matrix.php }}-build-
133+ php-${{ matrix.php }}-
134+ - name : Force update laravel version
135+ run : composer require "laravel/framework:^9.0" "orchestra/testbench:^7.0" --no-update
136+ - name : Remove some dev dependencies
137+ run : composer remove "ekino/phpstan-banned-code" "nunomaduro/larastan" "phpmd/phpmd" "phpstan/phpstan-deprecation-rules" "sebastian/phpcpd" --dev --no-update
93138 - name : Install composer dependencies
94139 run : composer install --prefer-dist
95140 - name : Run the Coverage test suite
0 commit comments