Skip to content

[TASK] Test categories display of event dates in the event archive #6298

[TASK] Test categories display of event dates in the event archive

[TASK] Test categories display of event dates in the event archive #6298

Workflow file for this run

---
name: Code coverage
on:
push:
branches:
- main
pull_request:
jobs:
code-coverage:
name: Calculate code coverage
runs-on: ubuntu-24.04
timeout-minutes: 20
env:
DATABASE_HOST: 127.0.0.1
DATABASE_USER: root
DATABASE_PASSWORD: root
DATABASE_NAME: typo3
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: "${{ matrix.php-version }}"
ini-file: development
coverage: xdebug
extensions: mysqli
tools: composer:v2, phive
- name: Show Composer version
run: composer --version
- name: Show the Composer configuration
run: composer config --global --list
- name: Cache dependencies installed with composer
uses: actions/cache@v6
with:
key: "php${{ matrix.php-version }}-typo3${{ matrix.typo3-version }}-${{ matrix.composer-dependencies }}-composer-${{ hashFiles('**/composer.json') }}"
path: ~/.cache/composer
restore-keys: "php${{ matrix.php-version }}-typo3${{ matrix.typo3-version }}-${{ matrix.composer-dependencies }}-composer-\n"
- name: Install TYPO3 Core
env:
TYPO3: "${{ matrix.typo3-version }}"
run: |
composer require --no-ansi --no-interaction --no-progress --no-install typo3/cms-core:"$TYPO3"
composer show
- name: Install lowest dependencies with composer
if: "matrix.composer-dependencies == 'lowest'"
run: |
composer update --no-ansi --no-interaction --no-progress --with-dependencies --prefer-lowest
composer show
- name: Install highest dependencies with composer
if: "matrix.composer-dependencies == 'highest'"
run: |
composer update --no-ansi --no-interaction --no-progress --with-dependencies
composer show
- name: Install development tools
run: phive --no-progress install --trust-gpg-keys D8406D0D82947747293778314AA394086372C20A
- name: Start MySQL
run: "sudo /etc/init.d/mysql start"
- name: Create the tests directory
run: "mkdir -p .Build/public/typo3temp/var/tests"
- name: Run unit tests with coverage
run: composer check:coverage:unit
- name: Show generated coverage files
run: "ls -lahR .Build/coverage/"
- name: Run functional tests with coverage
run: |
export typo3DatabaseName="typo3";
export typo3DatabaseHost="127.0.0.1";
export typo3DatabaseUsername="root";
export typo3DatabasePassword="root";
composer check:coverage:functional
- name: Show generated coverage files
run: "ls -lahR .Build/coverage/"
- name: Run legacy functional tests with coverage
run: |
export typo3DatabaseName="typo3";
export typo3DatabaseHost="127.0.0.1";
export typo3DatabaseUsername="root";
export typo3DatabasePassword="root";
composer check:coverage:legacy-functional
- name: Show generated coverage files
run: "ls -lahR .Build/coverage/"
- name: Merge coverage results
run: composer check:coverage:merge
- name: Show merged coverage files
run: "ls -lahR build/logs/"
- name: Upload coverage results to Coveralls
uses: coverallsapp/github-action@v2
with:
fail-on-error: false
env:
github-token: ${{ secrets.GITHUB_TOKEN }}
file: build/logs/clover.xml
strategy:
fail-fast: false
matrix:
include:
- typo3-version: "^11.5"
php-version: "8.2"
composer-dependencies: highest