File tree Expand file tree Collapse file tree 2 files changed +67
-53
lines changed
Expand file tree Collapse file tree 2 files changed +67
-53
lines changed Original file line number Diff line number Diff line change 1+ name : Tests
2+ on : [ pull_request ]
3+
4+ jobs :
5+ tests :
6+ name : PHPUnit PHP ${{ matrix.php }} ${{ matrix.dependency }} (Symfony ${{ matrix.symfony }})
7+ runs-on : ubuntu-latest
8+ strategy :
9+ matrix :
10+ php :
11+ - ' 7.1'
12+ - ' 7.2'
13+ - ' 7.3'
14+ - ' 7.4'
15+ - ' 8.0'
16+ dependency :
17+ - ' '
18+ symfony :
19+ - ' 4.4.*'
20+ - ' 5.3.*'
21+ include :
22+ - php : ' 7.1'
23+ symfony : ' 4.4.*'
24+ dependency : ' lowest'
25+ exclude :
26+ - php : ' 7.1'
27+ symfony : ' 5.3.*'
28+ fail-fast : false
29+ steps :
30+ - name : Checkout
31+ uses : actions/checkout@v2
32+
33+ - name : Setup PHP
34+ uses : shivammathur/setup-php@v2
35+ with :
36+ php-version : ${{ matrix.php }}
37+ extensions : pcov
38+ tools : flex
39+
40+ - name : Get Composer Cache Directory
41+ id : composer-cache
42+ run : echo "::set-output name=dir::$(composer config cache-files-dir)"
43+
44+ - name : Cache dependencies
45+ uses : actions/cache@v2
46+ with :
47+ path : ${{ steps.composer-cache.outputs.dir }}
48+ key : ${{ matrix.php }}-composer-${{ hashFiles('**/composer.json') }}
49+ restore-keys : ${{ matrix.php }}-composer-
50+
51+ - name : Update project dependencies
52+ if : matrix.dependency == ''
53+ run : composer update --no-progress --ansi --prefer-stable
54+ env :
55+ SYMFONY_REQUIRE : ${{ matrix.symfony }}
56+
57+ - name : Update project dependencies lowest
58+ if : matrix.dependency == 'lowest'
59+ run : composer update --no-progress --ansi --prefer-stable --prefer-lowest
60+ env :
61+ SYMFONY_REQUIRE : ${{ matrix.symfony }}
62+
63+ - name : Validate composer
64+ run : composer validate --strict --no-check-lock
65+
66+ - name : Run tests
67+ run : vendor/bin/phpunit
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments