Maintenance #75
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- '*' | |
permissions: | |
contents: read | |
jobs: | |
testsuite: | |
runs-on: ubuntu-22.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
php-version: ['8.1', '8.2', '8.3', '8.4'] | |
include: | |
- php-version: '8.1' | |
dependencies: lowest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-version }} | |
extensions: mbstring, intl | |
coverage: pcov | |
- name: Install packages | |
run: | | |
sudo apt install xfonts-base xfonts-75dpi | |
wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6.1-2/wkhtmltox_0.12.6.1-2.jammy_amd64.deb | |
sudo dpkg -i wkhtmltox_0.12.6.1-2.jammy_amd64.deb | |
sudo apt install -f | |
wkhtmltopdf --version | |
- name: Composer install | |
uses: ramsey/composer-install@v3 | |
with: | |
dependency-versions: ${{ matrix.dependencies }} | |
composer-options: ${{ matrix.composer-options }} | |
- name: Setup problem matchers for PHPUnit | |
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" | |
- name: Run PHPUnit | |
run: | | |
if [[ ${{ matrix.php-version }} == '8.1' ]]; then | |
vendor/bin/phpunit --display-warnings --display-deprecations --display-incomplete --display-skipped --coverage-clover=coverage.xml | |
else | |
vendor/bin/phpunit --display-warnings --display-deprecations | |
fi | |
- name: Code Coverage Report | |
if: matrix.php-version == '8.1' | |
uses: codecov/codecov-action@v4 | |
cs-stan: | |
uses: cakephp/.github/.github/workflows/cs-stan.yml@5.x | |
secrets: inherit |