Merge pull request #299 from ysknsid25/mailhog #44
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Master | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
defaults: | |
run: | |
working-directory: ./project | |
jobs: | |
master: | |
runs-on: ubuntu-18.04 | |
container: | |
image: jsdecena/php8-fpm:8.0.13 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install Dependencies | |
run: composer install --no-ansi --no-interaction --no-progress --no-scripts --optimize-autoloader --ignore-platform-reqs | |
- name: Copy .env | |
run: php -r "file_exists('.env') || copy('.env.testing', '.env');" | |
- name: Execute tests | |
env: | |
DB_CONNECTION: sqlite | |
DB_DATABASE: ":memory:" | |
run: vendor/bin/phpunit --coverage-text |