Skip to content

Instantly share code, notes, and snippets.

@stefanzweifel
Last active August 27, 2019 19:57
Show Gist options
  • Save stefanzweifel/ce5fa5471a3a85773ea667172e8809df to your computer and use it in GitHub Desktop.
Save stefanzweifel/ce5fa5471a3a85773ea667172e8809df to your computer and use it in GitHub Desktop.
Example Configuration to run phpunit for a Laravel App on GitHub Actions
on: push
name: Run phpunit testsuite
jobs:
phpunit:
runs-on: ubuntu-latest
# container:
# image: lorisleiva/laravel-docker:7.3
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 1
- name: Install composer dependencies
run: composer install --no-ansi --no-interaction --no-scripts --no-suggest --no-progress --prefer-dist
- name: Prepare Laravel Application
run: |
cp .env.example .env
php artisan key:generate
- name: Run Testsuite
run: vendor/bin/phpunit tests/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment