Skip to content

Commit

Permalink
Try running tests using GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
xemlock committed Jan 1, 2021
1 parent e8caf7a commit 83805da
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/php-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: PHP CI

on: [push, pull_request]

jobs:
run:
runs-on: ${{ matrix.operating-system }}

strategy:
matrix:
operating-system: ['ubuntu-16.04']
php-versions: ['7.4', '7.3', '7.2', '7.1', '7.0', '5.6', '5.5', '5.4', '5.3']

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: mbstring, intl, dom
ini-values: max_execution_time=180
coverage: xdebug

- run: composer install
- run: mkdir -p build/logs
- run: composer test -- --coverage-clover build/logs/clover.xml

- run: if [ -f "vendor/bin/php-coveralls" ]; then php vendor/bin/php-coveralls -v; else vendor/bin/coveralls -v; fi

0 comments on commit 83805da

Please sign in to comment.