Skip to content

Commit

Permalink
Rewrite Travis CI tests to Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
e1himself committed Jul 21, 2021
1 parent a647a0f commit 19e6a4c
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 28 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
on: push
name: Test
jobs:
test:
name: Test
runs-on: ubuntu-latest
strategy:
matrix:
php: [ '7.0', '7.1', '7.2', '7.3', '7.4' ]

continue-on-error: ${{ matrix.php == '7.4' }}

steps:
- uses: actions/checkout@master

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: xdebug2

- name: Install Dependencies
env:
COMPOSER_FLAGS: ${{ (matrix.php == '7.4') && ' --ignore-platform-reqs' || '' }}
run: |
composer install $COMPOSER_FLAGS
- name: Test
run: |
php -d error_reporting=$(php -r 'echo E_ALL & ~ E_DEPRECATED & ~ E_NOTICE;') \
-d xdebug.mode=coverage \
-d xdebug.overload_var_dump=0 \
vendor/bin/phpunit
- name: Upload coverage results to Coveralls
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
composer global require php-coveralls/php-coveralls
php-coveralls --coverage_clover=build/logs/clover.xml -v
28 changes: 0 additions & 28 deletions .travis.yml

This file was deleted.

0 comments on commit 19e6a4c

Please sign in to comment.