Split up the icons and the monster section into components with types… #2487
Workflow file for this run
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.3 | |
- 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: Type Check | |
run: yarn type-check | |
- name: Generate key | |
run: php artisan key:generate | |
- name: Link Storage | |
run: php artisan storage:link | |
- name: Install dependencies (Laravel Vite) | |
run: yarn build | |
- 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 | |
mkdir test-coverage | |
vendor/bin/phpunit --stop-on-error --stop-on-failure --coverage-html=./test-coverage | |
- name: Upload HTML coverage report | |
uses: actions/upload-artifact@v4 | |
with: | |
name: coverage-report | |
path: test-coverage |