File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Expand file tree Collapse file tree 1 file changed +40
-0
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
+
3
+ on :
4
+ pull_request :
5
+ push :
6
+ branches :
7
+ - master
8
+ tags :
9
+ - " **"
10
+
11
+ name : " PHPUnit tests"
12
+
13
+ jobs :
14
+
15
+ tests :
16
+ name : " Tests"
17
+
18
+ runs-on : ubuntu-latest
19
+
20
+ strategy :
21
+ matrix :
22
+ php-binary :
23
+ - php7.2
24
+ - php7.3
25
+ # - php7.4
26
+
27
+ steps :
28
+ - name : " Checkout"
29
+
30
+
31
+ - name : " Install dependencies with composer"
32
+ run : ${{ matrix.php-binary }} $(which composer) update --no-interaction --prefer-source --no-progress --no-suggest
33
+
34
+ - name : " Run unit tests with phpunit/phpunit"
35
+ run : ${{ matrix.php-binary }} vendor/bin/phpunit --configuration phpunit.xml --coverage-clover clover.xml
36
+
37
+ # - name: "Send code coverage report to Codecov.io"
38
+ # env:
39
+ # CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
40
+ # run: bash <(curl -s https://codecov.io/bash)
You can’t perform that action at this time.
0 commit comments