9
9
10
10
jobs :
11
11
test-php :
12
- name : Test on php ${{ matrix.php-version }} and ${{ matrix.os }}
12
+ name : Test on php ${{ matrix.php-version }} (${{ matrix.php-extensions }}) and ${{ matrix.os }}
13
13
runs-on : ${{ matrix.os }}
14
14
strategy :
15
15
matrix :
16
16
php-version : ["7.1", "7.2", "7.3", "7.4", "8.0"]
17
+ php-extensions : ["dbase", ""]
17
18
os : [ubuntu-latest]
18
19
steps :
19
20
- uses : actions/checkout@v2
20
21
- name : Use php ${{ matrix.php-version }}
21
22
uses : shivammathur/setup-php@v2
22
23
with :
23
24
php-version : ${{ matrix.php-version }}
24
- extensions : mbstring
25
+ extensions : ${{ matrix.php-extensions }}
25
26
coverage : xdebug
26
27
- name : Cache module
27
28
uses : actions/cache@v2
@@ -32,11 +33,16 @@ jobs:
32
33
run : composer install
33
34
- name : Run php tests
34
35
run : composer run phpunit
36
+ - name : Run php examples
37
+ run : |
38
+ php -f examples/create_shapefile.php
39
+ php -f examples/read_point.php > /dev/null
40
+ php -f examples/read_polygon.php > /dev/null
35
41
- name : Send coverage
36
42
uses : codecov/codecov-action@v1
37
43
with :
38
- flags : unit-${{ matrix.php-version }}-${{ matrix.os }}
39
- name : phpunit-${{ matrix.php-version }}-${{ matrix.os }}
44
+ flags : unit-${{ matrix.php-version }}-${{ matrix.php-extensions }}-${{ matrix. os }}
45
+ name : phpunit-${{ matrix.php-version }}-${{ matrix.php-extensions }}-${{ matrix. os }}
40
46
- name : Send coverage to Scrutinizer
41
47
uses : sudo-bot/action-scrutinizer@latest
42
48
# Upload can fail on forks
0 commit comments