File tree Expand file tree Collapse file tree 1 file changed +20
-12
lines changed
Expand file tree Collapse file tree 1 file changed +20
-12
lines changed Original file line number Diff line number Diff line change 1- name : test
1+ name : Check code
22
33on :
44 push :
55 pull_request :
6- schedule :
7- - cron : ' 0 12 15 * *'
86
97jobs :
10- test :
8+
9+ check :
10+ name : Run checks - PHP ${{ matrix.php }} - ${{ matrix.dependency-version }}
1111 runs-on : ${{ matrix.os }}
1212 strategy :
1313 fail-fast : false
1414 matrix :
15- php : [8.0]
15+ php : [8.0, 8.1 ]
1616 dependency-version : [prefer-lowest, prefer-stable]
1717 os : [ubuntu-latest]
1818
19- name : PHP ${{ matrix.php }} - ${{ matrix.dependency-version }} - ${{ matrix.os }}
20-
2119 steps :
2220 - name : Check out code
2321 uses : actions/checkout@v2
2422
25- - name : Cache dependencies
23+ - name : Cache PHP dependencies
24+ uses : actions/cache@v2
25+ with :
26+ path : ' **/vendor'
27+ key : ${{ runner.os }}-vendor-cache-${{ hashFiles('**/composer.lock') }}
28+ restore-keys : |
29+ ${{ runner.os }}-vendor-cache-
30+
31+ - name : Cache Composer dependencies
2632 uses : actions/cache@v2
2733 with :
2834 path : ~/.composer/cache/files
29- key : dependencies -${{ runner.os }}-php-${{ matrix.php }}-composer -${{ hashFiles('composer.json') }}
35+ key : composer -${{ runner.os }}-php-${{ matrix.php }}-${{ hashFiles('composer.json') }}
3036
3137 - name : Validate Composer configuration file
3238 run : composer validate --strict
3945 coverage : none
4046
4147 - name : Install dependencies
42- run : |
43- composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
48+ run : composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-progress --optimize-autoloader
49+
50+ - name : Lint code
51+ run : vendor/bin/php-cs-fixer fix --dry-run --diff
4452
45- - name : Execute tests
53+ - name : Run tests
4654 run : vendor/bin/phpunit
You can’t perform that action at this time.
0 commit comments