Skip to content

Merge pull request #284 from Nave-wata/chore/fix-sendmail #373

Merge pull request #284 from Nave-wata/chore/fix-sendmail

Merge pull request #284 from Nave-wata/chore/fix-sendmail #373

Workflow file for this run

name: Laravel
on:
push:
branches:
- "**"
pull_request:
branches:
- "**"
jobs:
laravel-tests:
runs-on: ubuntu-latest
services:
db:
image: mariadb:10.10.2
ports:
- 3306:3306
env:
MYSQL_ROOT_PASSWORD: password
options: >-
--health-cmd "mysqladmin ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: shivammathur/setup-php@15c43e89cdef867065b0213be354c2841860869e
with:
php-version: "8.1"
- uses: actions/checkout@v3
- name: Copy .env
run: php -r "file_exists('.env') || copy('.env.example', '.env');"
- name: Install Dependencies
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
- name: Generate key
run: php artisan key:generate
- name: Directory Permissions
run: chmod -R 777 storage bootstrap/cache
- name: Create Database
run: mysql --protocol=tcp -h localhost -P 3306 -u root -ppassword -e "CREATE DATABASE IF NOT EXISTS testing"
- name: Execute tests (Unit and Feature tests) via PHPUnit
env:
DB_DATABASE: testing
DB_PASSWORD: password
MAIL_FROM_ADDRESS: [email protected]
run: vendor/bin/phpunit