35 lines
761 B
YAML
Raw Normal View History

2019-11-19 10:11:48 +03:00
name: GitHub CI
2019-11-18 13:50:47 +03:00
2019-11-19 10:11:48 +03:00
on: [push, pull_request]
2019-11-18 13:50:47 +03:00
jobs:
2019-11-19 10:11:48 +03:00
tests:
2019-11-19 10:36:17 +03:00
name: PHP ${{ matrix.php-versions }} Test
2019-11-18 13:50:47 +03:00
runs-on: ubuntu-latest
2019-11-19 10:36:17 +03:00
strategy:
max-parallel: 2
matrix:
php-versions: ['7.2', '7.3']
2019-11-18 13:50:47 +03:00
steps:
2019-11-19 10:36:17 +03:00
- 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
2019-11-18 13:50:47 +03:00
- name: Copy .env
run: php -r "file_exists('.env') || copy('.env.testing', '.env');"
2019-11-19 10:36:17 +03:00
2019-11-18 13:50:47 +03:00
- name: Install composer
run: composer install -q --no-ansi --no-interaction --no-scripts --no-suggest --no-progress --prefer-dist
2019-11-19 10:36:17 +03:00
2019-11-18 13:50:47 +03:00
- name: Execute tests
run: vendor/bin/phpunit