Skip to content

Remove uploading coverage.xml to Codecov (#396) #752

Remove uploading coverage.xml to Codecov (#396)

Remove uploading coverage.xml to Codecov (#396) #752

Workflow file for this run

name: PHPUnit
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
name: Test
runs-on: ubuntu-24.04
services:
mysql:
image: mysql:9.1
env:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: laravel_blog
ports:
- 3306:3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Setup PHP 8.3
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
- name: Copy .env
run: php -r "file_exists('.env') || copy('.env.ci', '.env');"
- name: Install Composer 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: Clear Configuration
run: php artisan config:clear
- name: Run the migrations
run: php artisan migrate
- name: Run tests via PHPUnit
run: vendor/bin/phpunit