Skip to content

Merge tag '0.5.3' into develop #23

Merge tag '0.5.3' into develop

Merge tag '0.5.3' into develop #23

Workflow file for this run

name: Tests
on:
push:
branches:
- main
- develop
pull_request:
branches:
- '**'
jobs:
tests:
name: Tests (PHP ${{ matrix.php-version }}, TYPO3 ${{ matrix.typo3-version }} & ${{ matrix.dependencies }} dependencies)
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php-version: ["8.1", "8.2"]
typo3-version: ["11.5", "12.4"]
dependencies: ["highest", "lowest"]
env:
typo3DatabaseName: typo3
typo3DatabaseHost: '127.0.0.1'
typo3DatabaseUsername: root
typo3DatabasePassword: root
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
# Prepare environment
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
tools: composer:v2
coverage: none
# Start MySQL service
- name: Start MySQL
run: sudo /etc/init.d/mysql start
# Install dependencies
- name: Install Composer dependencies
uses: ramsey/composer-install@v2
with:
dependency-versions: ${{ matrix.dependencies }}
composer-options: --with=typo3/cms-core:"^${{ matrix.typo3-version }}"
# Run tests
- name: Run tests
run: composer test
coverage:
name: Test coverage
runs-on: ubuntu-latest
env:
typo3DatabaseName: typo3
typo3DatabaseHost: '127.0.0.1'
typo3DatabaseUsername: root
typo3DatabasePassword: root
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
# Prepare environment
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.2
tools: composer:v2
coverage: pcov
# Start MySQL service
- name: Start MySQL
run: sudo /etc/init.d/mysql start
# Install dependencies
- name: Install Composer dependencies
uses: ramsey/composer-install@v2
# Run tests
- name: Run tests
run: composer test:coverage
# Report coverage
- name: Fix coverage path
working-directory: .Build/coverage
run: sed -i 's#/home/runner/work/personio-jobs/personio-jobs#${{ github.workspace }}#g' clover.xml
- name: CodeClimate report
uses: paambaati/codeclimate-action@v5.0.0
if: env.CC_TEST_REPORTER_ID
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
with:
coverageLocations: |
${{ github.workspace }}/.Build/coverage/clover.xml:clover
- name: codecov report
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: .Build/coverage
fail_ci_if_error: true
verbose: true