Skip to content

fixup! 4d4ff2ffd1f005745cb1756a15f59c01bb8b1610 #3401

fixup! 4d4ff2ffd1f005745cb1756a15f59c01bb8b1610

fixup! 4d4ff2ffd1f005745cb1756a15f59c01bb8b1610 #3401

Workflow file for this run

name: Unit
on:
push:
pull_request:
permissions:
contents: read
jobs:
tests_linux:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[skip ci]') && !contains(github.event.head_commit.message, '[ci skip]') && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name)"
strategy:
fail-fast: false
matrix:
php: ["8.1", "8.2", "8.3", "8.4", "8.5"]
name: Linux / PHP ${{ matrix.php }}
steps:
- name: Checkout code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup PHP
uses: shivammathur/setup-php@9e72090525849c5e82e596468b86eb55e9cc5401 # v2.32.0
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, fileinfo, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, gd, ldap, intl, pspell, enchant
tools: composer:v2
coverage: none
- name: Setup problem matchers
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
- name: Install Aspell/Hunspell
run: sudo apt-get -y update && sudo apt-get -y install --no-install-recommends aspell aspell-en aspell-de hunspell-en-us
- name: Execute tests
if: ${{ matrix.php != '8.5' }}
run: .ci/run_tests.sh
# Pass in a composer arg to make composer not complain about PHP version constrains with v8.5-rc until all
# dependency packages have released a version that supports v8.5.
- name: Execute tests
if: ${{ matrix.php == '8.5' }}
env:
COMPOSER_ARGS: "--ignore-platform-reqs"
run: .ci/run_tests.sh
- name: Upload artifacts
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
if: failure()
with:
name: Logs
path: logs/errors.log
tests_windows:
runs-on: windows-latest
if: "!contains(github.event.head_commit.message, '[skip ci]') && !contains(github.event.head_commit.message, '[ci skip]') && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name)"
strategy:
fail-fast: false
matrix:
php: ["8.1", "8.2", "8.3", "8.4", "8.5"]
name: Windows / PHP ${{ matrix.php }}
steps:
- name: Checkout code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup PHP
uses: shivammathur/setup-php@9e72090525849c5e82e596468b86eb55e9cc5401 # v2.32.0
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, fileinfo, libxml, mbstring, zip, pdo, sqlite, pdo_sqlite, gd, ldap, intl
tools: composer:v2
coverage: none
- name: Execute tests
if: ${{ matrix.php != '8.5' }}
run: bash -ex .ci/run_tests.sh
# Pass in a composer arg to make composer not complain about PHP version constrains with v8.5-rc until all
# dependency packages have released a version that supports v8.5.
- name: Execute tests
if: ${{ matrix.php == '8.5' }}
env:
COMPOSER_ARGS: "--ignore-platform-reqs"
run: bash -ex .ci/run_tests.sh
- name: Upload artifacts
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
if: failure()
with:
name: Logs
path: logs/errors.log