ADD GitHub Actions CI workflow

This commit is contained in:
Christopher C. Wells 2021-03-28 14:37:38 -07:00
parent 5c8b985a64
commit 25bf1a867a
1 changed files with 22 additions and 0 deletions

22
.github/workflows/ci.yml vendored Normal file
View File

@ -0,0 +1,22 @@
name: CI
on: [push]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: php-actions/composer@v5
- name: Run tests
uses: php-actions/phpunit@v2
with:
php_extensions: xdebug
configuration: phpunit.xml
args: --coverage-clover build/logs/clover.xml
env:
XDEBUG_MODE: coverage
- 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