Un 116 + UN-115 testing.md seeders, factories, etc #15
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: Build Laravel PHP Project | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
branches: ["main"] | |
jobs: | |
phpunit: | |
runs-on: ubuntu-latest | |
container: | |
image: kirschbaumdevelopment/laravel-test-runner:8.2 | |
steps: | |
- uses: actions/checkout@v1 | |
with: | |
fetch-depth: 1 | |
- name: Install front-end dependencies | |
run: | | |
npm install | |
npm run build | |
- name: Install composer dependencies | |
run: | | |
composer update | |
composer install | |
- name: Prepare Laravel Application | |
run: | | |
cp .env.testing .env | |
php artisan migrate:fresh --env=testing | |
- name: Run Testsuite | |
run: php artisan test |