Skip to content

Commit 105f9bf

Browse files
Use GitHub actions for the tests (#381)
* [DO NOT REVIEW] Drop support for outdated PHP versions https://www.php.net/supported-versions.php Support for PHP 7.1 and 7.2 remains on a best-effort basis to accommodate users who haven’t upgraded yet. * [DO NOT REVIEW] Upgrade PHPUnit to the latest version @ExpectedException has been replaced with $this->expectException. assertInternalType was replaced with more specific assertions (assertIsArray). * Use GitHub actions for the tests Travis CI is no longer open-source friendly. Co-authored-by: Joachim Fritschi <[email protected]>
1 parent bd0e964 commit 105f9bf

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.github/workflows/test.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Test
2+
3+
on:
4+
- push
5+
- pull_request
6+
7+
jobs:
8+
test:
9+
runs-on: ubuntu-latest
10+
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
php-version:
15+
- php: '7.1'
16+
phpunit: '7.5'
17+
- php: '7.2'
18+
phpunit: '8'
19+
- php: '7.3'
20+
phpunit: latest
21+
- php: '7.4'
22+
phpunit: latest
23+
- php: '8.0'
24+
phpunit: latest
25+
26+
steps:
27+
- uses: actions/checkout@v2
28+
- uses: php-actions/composer@v5
29+
- name: Run PHPUnit
30+
uses: php-actions/phpunit@v2
31+
with:
32+
version: "${{ matrix.php-version.phpunit }}"
33+
php_version: "${{ matrix.php-version.php }}"
34+
php_extensions: xdebug
35+
args: --verbose --coverage-clover=coverage.xml
36+
env:
37+
XDEBUG_MODE: coverage
38+
- name: Report coverage
39+
uses: codecov/codecov-action@v1
40+
with:
41+
files: coverage.xml

0 commit comments

Comments
 (0)