Skip to content

Commit

Permalink
added php verison matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
denisdulici committed Nov 19, 2019
1 parent 60dfde5 commit 519f552
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,31 @@ on: [push, pull_request]

jobs:
tests:

name: PHP ${{ matrix.php-versions }} Test

runs-on: ubuntu-latest

strategy:
max-parallel: 2
matrix:
php-versions: ['7.2', '7.3']

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@master

- name: Setup PHP
uses: shivammathur/setup-php@master
with:
php-version: ${{ matrix.php-versions }}
extension-csv: mbstring, dom, fileinfo
coverage: xdebug

- name: Copy .env
run: php -r "file_exists('.env') || copy('.env.testing', '.env');"

- name: Install composer
run: composer install -q --no-ansi --no-interaction --no-scripts --no-suggest --no-progress --prefer-dist

- name: Execute tests
run: vendor/bin/phpunit

0 comments on commit 519f552

Please sign in to comment.