File tree 1 file changed +54
-0
lines changed
1 file changed +54
-0
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
+ - main
8
+
9
+ jobs :
10
+ tests :
11
+ name : " Tests [PHP ${{ matrix.php }} - ${{ matrix.dependencies }}]"
12
+ runs-on : ubuntu-latest
13
+
14
+ services :
15
+ s3 :
16
+ image : asyncaws/testing-s3
17
+ ports :
18
+ - 4569:4569
19
+
20
+ strategy :
21
+ fail-fast : false
22
+ matrix :
23
+ php :
24
+ - " 7.4"
25
+ - " 8.0"
26
+ - " 8.1"
27
+ dependencies :
28
+ - highest
29
+ include :
30
+ - php : 7.4
31
+ dependencies : ' lowest'
32
+
33
+ steps :
34
+ - name : Checkout
35
+ uses : actions/checkout@v2
36
+
37
+ # https://github.com/shivammathur/setup-php
38
+ - name : Setup PHP
39
+ uses : " shivammathur/setup-php@v2"
40
+ with :
41
+ php-version : " ${{ matrix.php }}"
42
+ tools : phpunit-bridge
43
+ extensions : mbstring
44
+ coverage : xdebug
45
+
46
+ # https://github.com/ramsey/composer-install
47
+ - name : Composer
48
+ uses : " ramsey/composer-install@v2"
49
+ with :
50
+ dependency-versions : " ${{ matrix.dependencies }}"
51
+ composer-options : " --optimize-autoloader"
52
+
53
+ - name : Run tests
54
+ run : vendor/bin/simple-phpunit --coverage-text
You can’t perform that action at this time.
0 commit comments