Skip to content

[Feature] - Ajoute le support pour le cache #95

[Feature] - Ajoute le support pour le cache

[Feature] - Ajoute le support pour le cache #95

Workflow file for this run

name: PHPUnit
env:
PHP_VERSION: 8.3
DATABASE_URL: "/var/test_db.sqlite"
DATABASE_ENGINE: "pdo_sqlite"
on:
pull_request:
branches:
- main
- staging
concurrency:
group: phpunit-tests-${{ github.ref }}-1
cancel-in-progress: true
jobs:
phpunit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Cache Composer dependencies
uses: actions/cache@v2
with:
path: /tmp/composer-cache
key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }}
- name: Install dependencies
uses: php-actions/composer@v6
with:
args: --ignore-platform-reqs
php_version: ${{ env.PHP_VERSION }}
- name: Build test db
uses: ./.github/actions/create-test-db
- uses: php-actions/phpunit@v3
name: phpunit
with:
php_extensions: xdebug mbstring xml iconv intl
php_version: ${{ env.PHP_VERSION }}
version: '10'
args: --coverage-text --testdox
env:
XDEBUG_MODE: coverage