Skip to content

Update main.yml

Update main.yml #7

Workflow file for this run

name: Test install
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
extensions: mbstring, dom, fileinfo, mysql, bcmath, zip
- 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: Run Migrations
run: php artisan migrate
- name: Run Seeding
run: php artisan db:seed
- name: Execute tests (Unit and Feature tests) via PHPUnit
run: php artisan test --coverage-text