Skip to content

Commit d37c5d1

Browse files
committed
Switch from Travis CI to Github Actions
Github Actions is significantly faster and provides nicer feedback about test failures.
1 parent a48109d commit d37c5d1

3 files changed

Lines changed: 30 additions & 14 deletions

File tree

.gitattributes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
# Ignore all test and documentation with "export-ignore".
55
/.gitattributes export-ignore
6+
/.github export-ignore
67
/.gitignore export-ignore
7-
/.travis.yml export-ignore
88
/phpunit.xml.dist export-ignore
99
/tests export-ignore

.github/workflows/tests.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Tests
2+
3+
on:
4+
push: ~
5+
pull_request: ~
6+
7+
jobs:
8+
phpunit:
9+
name: PHPUnit on ${{ matrix.php }} ${{ matrix.composer-flags }}
10+
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
php: ['7.1', '7.2', '7.3', '7.4']
14+
15+
steps:
16+
- uses: actions/checkout@v2
17+
18+
- uses: shivammathur/setup-php@v2
19+
with:
20+
php-version: ${{ matrix.php }}
21+
extensions: curl
22+
coverage: pcov
23+
tools: composer:v2
24+
25+
- run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
26+
27+
- run: composer update --no-progress
28+
29+
- run: vendor/bin/phpunit --coverage-text

.travis.yml

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)