Skip to content

Commit 0429678

Browse files
committed
Update phpstan baseline and matrix test using the dbase extension
Signed-off-by: William Desportes <[email protected]>
1 parent 059b596 commit 0429678

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

.github/workflows/tests.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,20 @@ on:
99

1010
jobs:
1111
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 }}
1313
runs-on: ${{ matrix.os }}
1414
strategy:
1515
matrix:
1616
php-version: ["7.1", "7.2", "7.3", "7.4", "8.0"]
17+
php-extensions: ["dbase", ""]
1718
os: [ubuntu-latest]
1819
steps:
1920
- uses: actions/checkout@v2
2021
- name: Use php ${{ matrix.php-version }}
2122
uses: shivammathur/setup-php@v2
2223
with:
2324
php-version: ${{ matrix.php-version }}
24-
extensions: mbstring
25+
extensions: ${{ matrix.php-extensions }}
2526
coverage: xdebug
2627
- name: Cache module
2728
uses: actions/cache@v2
@@ -32,11 +33,16 @@ jobs:
3233
run: composer install
3334
- name: Run php tests
3435
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
3541
- name: Send coverage
3642
uses: codecov/codecov-action@v1
3743
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 }}
4046
- name: Send coverage to Scrutinizer
4147
uses: sudo-bot/action-scrutinizer@latest
4248
# Upload can fail on forks

phpstan-baseline.neon

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,6 @@ parameters:
7070
count: 2
7171
path: src/ShapeFile.php
7272

73-
-
74-
message: "#^Parameter \\#1 \\$fp of function fread expects resource, resource\\|null given\\.$#"
75-
count: 1
76-
path: src/ShapeFile.php
77-
7873
-
7974
message: "#^Parameter \\#1 \\$fp of function feof expects resource, resource\\|null given\\.$#"
8075
count: 1

0 commit comments

Comments
 (0)