File tree Expand file tree Collapse file tree 2 files changed +56
-17
lines changed
Expand file tree Collapse file tree 2 files changed +56
-17
lines changed Original file line number Diff line number Diff line change 1+ name : " Continuous Integration"
2+
3+ on :
4+ pull_request :
5+ push :
6+ branches :
7+ - master
8+ jobs :
9+ test :
10+ name : " Test"
11+ runs-on : " ubuntu-latest"
12+
13+ strategy :
14+ matrix :
15+ php-version :
16+ - " 7.4"
17+ - " 8.0"
18+ - " 8.1"
19+ - " 8.2"
20+ - " 8.3"
21+ dependencies :
22+ - " lowest"
23+ - " highest"
24+
25+ steps :
26+ - name : " Checkout"
27+ uses : " actions/checkout@v4"
28+
29+ - name : " Install PHP"
30+ uses : " shivammathur/setup-php@v2"
31+ with :
32+ coverage : " xdebug"
33+ php-version : " ${{ matrix.php-version }}"
34+ ini-values : " zend.assertions=1"
35+
36+ - uses : " ramsey/composer-install@v2"
37+ with :
38+ dependency-versions : " ${{ matrix.dependencies }}"
39+
40+ # dbal-fluid-schema-builder doesn't support v1.0 only v1.4
41+ - name : Update doctrine/inflector to v1.4 from v1.0
42+ if : " ${{ 'lowest' == matrix.dependencies }}"
43+ run : |
44+ composer update doctrine/inflector:1.4 --ignore-platform-reqs
45+
46+ - name : " Run PHPUnit"
47+ run : " vendor/bin/phpunit -c phpunit.xml.dist"
48+
49+ - name : Upload coverage results to Coveralls
50+ # skip php-coversalls for lowest deps
51+ # it fails on lowest depedencies because old versions of guzzle doesn't work well with newer php versions
52+ if : " ${{ 'highest' == matrix.dependencies }}"
53+ env :
54+ COVERALLS_REPO_TOKEN : ${{ secrets.GITHUB_TOKEN }}
55+ run : |
56+ vendor/bin/php-coveralls --coverage_clover=build/logs/clover.xml -v
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments