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-18 13:50:47 +03:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
- 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
|