migrate from travis to gh action

Signed-off-by: Matthew Peveler <matt.peveler@gmail.com>
This commit is contained in:
Matthew Peveler
2021-01-28 11:33:57 +00:00
parent c3110d9760
commit 7d21cee5c1
3 changed files with 27 additions and 16 deletions
+26
View File
@@ -0,0 +1,26 @@
name: Test
on:
push:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
php-version: ['5.6', '7.0', '7.1', '7.2', '7.3', '7.4']
steps:
- uses: actions/checkout@v2
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
tools: composer
coverage: xdebug
- uses: ramsey/composer-install@v1
- run: vendor/bin/phpunit --coverage-text tests