Skip to content

Bump phpunit/phpunit from 11.4.1 to 11.5.1 #503

Bump phpunit/phpunit from 11.4.1 to 11.5.1

Bump phpunit/phpunit from 11.4.1 to 11.5.1 #503

Workflow file for this run

name: Tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
extensions: xdebug
- name: Start database
run: sudo service mysql start
- name: Create database
run: mysql -e "CREATE DATABASE IF NOT EXISTS liberu;" -uroot -proot
- name: Copy environment file
run: cp .env.testing .env
- name: Install dependencies
run: composer install
- name: Generate application key
run: php artisan key:generate
- name: Run database migrations
run: php artisan migrate
- name: Seed database
run: php artisan db:seed
- name: Run tests
run: XDEBUG_MODE=coverage vendor/bin/phpunit --dont-report-useless-tests --coverage-clover=coverage.xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.xml
flags: unittests
name: codecov-umbrella
fail_ci_if_error: true