File tree Expand file tree Collapse file tree 2 files changed +62
-58
lines changed Expand file tree Collapse file tree 2 files changed +62
-58
lines changed Original file line number Diff line number Diff line change
1
+ name : " Test application"
2
+
3
+ on :
4
+ pull_request :
5
+ push :
6
+ branches :
7
+ - " master"
8
+ - " [0-9]+.x"
9
+ - " [0-9]+.[0-9]+"
10
+ - " [0-9]+.[0-9]+.x"
11
+
12
+ jobs :
13
+ test :
14
+ name : " PHP ${{ matrix.php-version }}, Symfony ${{ matrix.symfony-require }} ${{ matrix.dependencies }}"
15
+ runs-on : " ubuntu-20.04"
16
+ env :
17
+ SYMFONY_DEPRECATIONS_HELPER : weak
18
+
19
+ strategy :
20
+ fail-fast : false
21
+ matrix :
22
+ include :
23
+ - php-version : " 7.2"
24
+ dependencies : " lowest"
25
+ symfony-require : " 4.4.*"
26
+
27
+ - php-version : " 7.4"
28
+ symfony-require : " 4.4.*"
29
+
30
+ - php-version : " 7.4"
31
+ symfony-require : " 5.0.*"
32
+
33
+ - php-version : " 8.0"
34
+ symfony-require : " *"
35
+
36
+ steps :
37
+ - name : " Checkout project"
38
+ uses : " actions/checkout@v2"
39
+
40
+ - name : " Install and configure PHP"
41
+ uses : " shivammathur/setup-php@v2"
42
+ with :
43
+ php-version : " ${{ matrix.php-version }}"
44
+ extensions : " pdo, pdo_sqlite"
45
+ tools : " composer:v2"
46
+
47
+ - name : " Require Specific Symfony Version"
48
+ if : " ${{ matrix.symfony-version }}"
49
+ run : " composer require --no-update symfony/symfony:${{ matrix.symfony-version }}"
50
+
51
+ - name : " Install dependencies with Composer"
52
+ uses : " ramsey/composer-install@v1"
53
+ with :
54
+ dependency-versions : " ${{ matrix.dependencies }}"
55
+ composer-options : " --prefer-dist"
56
+
57
+ - name : " Execute test cases"
58
+ run : |
59
+ if [[ $SYMFONY_PHPUNIT_VERSION == '' ]]; then unset SYMFONY_PHPUNIT_VERSION; fi;
60
+ make test
61
+ env :
62
+ SYMFONY_PHPUNIT_VERSION : " ${{ matrix.phpunit-version }}"
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments