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:
|
2019-12-01 20:39:37 +03:00
|
|
|
php-versions: ['7.2', '7.3', '7.4']
|
2019-11-19 10:36:17 +03:00
|
|
|
|
2019-11-18 13:50:47 +03:00
|
|
|
steps:
|
2019-11-19 11:03:22 +03:00
|
|
|
- uses: actions/checkout@v1
|
2019-11-19 10:36:17 +03:00
|
|
|
|
|
|
|
- name: Setup PHP
|
|
|
|
uses: shivammathur/setup-php@master
|
|
|
|
with:
|
|
|
|
php-version: ${{ matrix.php-versions }}
|
2019-12-02 13:52:48 +03:00
|
|
|
extension-csv: bcmath, ctype, dom, fileinfo, gd, json, mbstring, openssl, xml, zip
|
2019-11-19 11:14:35 +03:00
|
|
|
coverage: none
|
2019-11-19 10:36:17 +03:00
|
|
|
|
2019-11-18 13:50:47 +03:00
|
|
|
- name: Copy .env
|
2019-11-19 11:03:22 +03:00
|
|
|
run: cp .env.testing .env
|
2019-11-19 10:36:17 +03:00
|
|
|
|
2019-11-18 13:50:47 +03:00
|
|
|
- name: Install composer
|
2019-11-19 11:03:22 +03:00
|
|
|
run: composer test
|
2019-11-19 10:36:17 +03:00
|
|
|
|
2019-11-18 13:50:47 +03:00
|
|
|
- name: Execute tests
|
|
|
|
run: vendor/bin/phpunit
|