Skip to content

[9.x] Reset refresh database state between tests #3823

[9.x] Reset refresh database state between tests

[9.x] Reset refresh database state between tests #3823

Workflow file for this run

name: coveralls
on:
push:
pull_request:
jobs:
tests:
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.experimental }}
strategy:
matrix:
os:
- "ubuntu-latest"
php:
- 8.2
phpunit:
- "10.5.x"
dependencies:
- "highest"
experimental:
- false
name: PHP${{ matrix.php }} on ${{ matrix.os }} (${{ matrix.dependencies }})
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pcntl, sqlite3, pdo_sqlite, bcmath, fileinfo, :php-psr
coverage: xdebug
- name: Install PHPUnit ${{ matrix.phpunit }}
run: |
composer require "phpunit/phpunit:${{ matrix.phpunit }}" --no-interaction --no-update
- name: Install dependencies
uses: "ramsey/composer-install@v3"
with:
dependency-versions: "${{ matrix.dependencies }}"
composer-options: "--prefer-dist --prefer-stable"
- name: Installed dependencies
run: |
composer show -D
- name: Execute tests
run: vendor/bin/phpunit --coverage-clover build/logs/clover.xml
env:
RAY_ENABLED: false
- name: Upload coverage results to Coveralls
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
composer global require php-coveralls/php-coveralls
php-coveralls --coverage_clover=build/logs/clover.xml -v