Skip to content

update factories

update factories #370

Workflow file for this run

name: Back-end
on:
push:
branches:
- master
pull_request: null
jobs:
unit_tests:
strategy:
fail-fast: true
matrix:
os: ["ubuntu-22.04"]
php: ["8.2", "8.3"]
laravel: ["^11.0"]
dependency-version: ["highest"]
name: "Unit - PHP ${{ matrix.php }} - L ${{ matrix.laravel }} - ${{ matrix.dependency-version }}"
runs-on: "${{ matrix.os }}"
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, gd, fileinfo, exif
tools: composer:v2
coverage: xdebug3
- name: Check Composer configuration
run: composer validate --no-interaction # @dev --strict
- name: Install dependencies
if: ${{ matrix.dependency-version == 'highest' }}
run: composer update --no-interaction --no-progress --prefer-dist --with="laravel/framework:${{ matrix.laravel }}"
- name: Install locked dependencies
if: ${{ matrix.dependency-version == 'locked' }}
run: composer install --prefer-dist --no-interaction --no-progress
- name: Check for PSR-4 mapping errors
run: composer dump-autoload --optimize --strict-psr
- name: Execute tests
run: composer exec -- phpunit
- name: Send coverage to Coveralls
if: ${{ matrix.os == 'ubuntu-22.04' && matrix.php == '8.2' && matrix.laravel == '^11.0' }}
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
wget "https://github.com/php-coveralls/php-coveralls/releases/download/v2.7.0/php-coveralls.phar"
php ./php-coveralls.phar -v