File tree Expand file tree Collapse file tree 2 files changed +74
-42
lines changed
Expand file tree Collapse file tree 2 files changed +74
-42
lines changed Original file line number Diff line number Diff line change 1+ name : " CI"
2+
3+ on :
4+ pull_request :
5+ push :
6+ branches :
7+ - ' main'
8+
9+ env :
10+ SYMFONY_PHPUNIT_DIR : " $HOME/symfony-bridge/.phpunit"
11+
12+ jobs :
13+ tests :
14+ name : " PHP ${{ matrix.php-version }} + ${{ matrix.dependencies }}"
15+
16+ runs-on : ubuntu-latest
17+
18+ strategy :
19+ fail-fast : false
20+ matrix :
21+ php-version :
22+ - ' 7.1'
23+ - ' 7.2'
24+ - ' 7.3'
25+ - ' 7.4'
26+ - ' 8.0'
27+ dependencies :
28+ - ' highest'
29+ include :
30+ - php-version : ' 7.1'
31+ dependencies : ' lowest'
32+
33+ steps :
34+ - name : " Checkout code"
35+ uses : actions/checkout@v2.3.3
36+
37+ - name : " Install PHP with extensions"
38+ uses : shivammathur/setup-php@2.7.0
39+ with :
40+ coverage : " none"
41+ php-version : ${{ matrix.php-version }}
42+ tools : composer:v2
43+
44+ - name : " Validate composer.json"
45+ run : " composer validate --strict --no-check-lock"
46+
47+ - name : " Add PHPUnit matcher"
48+ run : echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
49+
50+ - run : composer require --no-update composer/composer:^1.0.2
51+
52+ - uses : " ramsey/composer-install@v1"
53+ with :
54+ dependency-versions : " ${{ matrix.dependencies }}"
55+
56+ - name : " Install PHPUnit"
57+ run : vendor/bin/simple-phpunit install
58+
59+ - name : " PHPUnit version"
60+ run : vendor/bin/simple-phpunit --version
61+
62+ - run : vendor/bin/simple-phpunit
63+
64+ - run : composer require --no-update composer/composer:^2
65+
66+ - uses : " ramsey/composer-install@v1"
67+ with :
68+ dependency-versions : " ${{ matrix.dependencies }}"
69+
70+ - run : vendor/bin/simple-phpunit
71+
72+ - if : matrix.php-version == '7.1'
73+ name : " Lint PHP files"
74+ run : find src/ -name '*.php' | xargs -n1 php -l
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments