Skip to content

Instantly share code, notes, and snippets.

@Smally1997
Created August 27, 2019 17:50
Show Gist options
  • Save Smally1997/f8aa87b709dd60a22b87021c215979e9 to your computer and use it in GitHub Desktop.
Save Smally1997/f8aa87b709dd60a22b87021c215979e9 to your computer and use it in GitHub Desktop.
on: push
name: Run phpunit testsuite
jobs:
phpunit:
runs-on: ubuntu-latest
container:
image: lorisleiva/laravel-docker:7.3 # Change this to 7.1/7.2/7.3 to specify the PHP Version
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 1
- name: Install composer dependencies
uses: MilesChou/composer-action@master
with:
args: install -q --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