Fixed issue with map details page #1669
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: Laravel | |
on: [push] | |
jobs: | |
laravel-tests: | |
runs-on: ubuntu-latest | |
services: | |
mysql-service: | |
image: mysql:8.0.29 | |
env: | |
MYSQL_ROOT_PASSWORD: password | |
MYSQL_DATABASE: flare_test | |
ports: | |
- 33306:3306 | |
options: >- | |
--health-cmd="mysqladmin ping" | |
--health-interval=10s | |
--health-timeout=5s | |
--health-retries=3 | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 8.1 | |
- name: Copy .env | |
run: php -r "file_exists('.env') || copy('.env.example', '.env');" | |
- name: Install Dependencies | |
run: | | |
rm -rf vendor | |
rm -rf composer.lock | |
composer install | |
yarn install | |
- name: Generate key | |
run: php artisan key:generate | |
- name: Link Storage | |
run: php artisan storage:link | |
- name: Install dependencies (laravel mix) | |
run: yarn run prod | |
- name: Execute tests (Unit and Feature tests) via PHPUnit | |
env: | |
DB_CONNECTION: mysql | |
DB_HOST: 127.0.0.1 | |
DB_DATABASE: flare_test | |
DB_PORT: 33306 | |
DB_USER: root | |
DB_PASSWORD: password | |
TIME_ZONE: America/Edmonton | |
run: | | |
php artisan migrate | |
vendor/bin/phpunit --stop-on-failure |