File tree Expand file tree Collapse file tree 2 files changed +53
-1
lines changed Expand file tree Collapse file tree 2 files changed +53
-1
lines changed Original file line number Diff line number Diff line change
1
+ # https://help.github.com/en/categories/automating-your-workflow-with-github-actions
2
+ # https://github.com/sebastianbergmann/phpunit/blob/master/.github/workflows/ci.yml
3
+
4
+ on :
5
+ push :
6
+ branches :
7
+ - v1.2.x
8
+ pull_request :
9
+ branches :
10
+ - v1.2.x
11
+
12
+
13
+ name : " CI"
14
+
15
+ jobs :
16
+
17
+ tests :
18
+ name : " Unit Tests"
19
+ needs : static-code-analysis
20
+ runs-on : ${{ matrix.os }}
21
+
22
+ strategy :
23
+ fail-fast : false
24
+ matrix :
25
+ os :
26
+ - ubuntu-latest
27
+ - windows-latest
28
+ php-version :
29
+ - " 7.2"
30
+ - " 7.3"
31
+ - " 7.4"
32
+ - " 8.0"
33
+ - " 8.1"
34
+ - " 8.2"
35
+ - " 8.3"
36
+
37
+ steps :
38
+ - name : " Checkout"
39
+ uses : actions/checkout@v3
40
+
41
+ - name : " Install PHP with extensions"
42
+ uses : shivammathur/setup-php@v2
43
+ with :
44
+ php-version : ${{ matrix.php-version }}
45
+ coverage : pcov
46
+ extensions : json
47
+
48
+ - name : " Install dependencies with composer"
49
+ uses : ramsey/composer-install@v2
50
+
51
+ - name : " Run tests with phpunit"
52
+ run : php vendor/phpunit/phpunit/phpunit --configuration=phpunit.xml
Original file line number Diff line number Diff line change 24
24
"ext-json" : " *"
25
25
},
26
26
"require-dev" : {
27
- "phpunit/phpunit" : " ^8.4 "
27
+ "phpunit/phpunit" : " ^8.5 "
28
28
},
29
29
"autoload" : {
30
30
"psr-4" : {
You can’t perform that action at this time.
0 commit comments