File tree Expand file tree Collapse file tree 1 file changed +52
-0
lines changed Expand file tree Collapse file tree 1 file changed +52
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : " PHPUnit tests"
2
+
3
+ on :
4
+ pull_request :
5
+ push :
6
+ branches :
7
+ - " master"
8
+
9
+ jobs :
10
+ phpunit :
11
+ name : " PHPUnit tests"
12
+
13
+ runs-on : ${{ matrix.operating-system }}
14
+
15
+ strategy :
16
+ matrix :
17
+ dependencies :
18
+ - " lowest"
19
+ - " highest"
20
+ php-version :
21
+ - " 5.6"
22
+ - " 7.0"
23
+ - " 7.1"
24
+ - " 7.2"
25
+ - " 7.3"
26
+ - " 7.4"
27
+ - " 8.0"
28
+ operating-system :
29
+ - " ubuntu-latest"
30
+
31
+ steps :
32
+ - name : " Checkout"
33
+ uses : " actions/checkout@v2"
34
+
35
+ - name : " Install PHP"
36
+ uses : " shivammathur/setup-php@v2"
37
+ with :
38
+ coverage : " pcov"
39
+ php-version : " ${{ matrix.php-version }}"
40
+ ini-values : memory_limit=-1
41
+ tools : composer:v2
42
+
43
+ - name : " Install lowest dependencies"
44
+ if : ${{ matrix.dependencies == 'lowest' }}
45
+ run : " composer update --prefer-lowest --no-interaction --no-progress --no-suggest"
46
+
47
+ - name : " Install highest dependencies"
48
+ if : ${{ matrix.dependencies == 'highest' }}
49
+ run : " composer update --no-interaction --no-progress --no-suggest"
50
+
51
+ - name : " Tests"
52
+ run : " vendor/bin/phpunit"
You can’t perform that action at this time.
0 commit comments