Skip to content

Suppress E_WARNING #903

Suppress E_WARNING

Suppress E_WARNING #903

Workflow file for this run

name: Test Coveralls
on:
pull_request:
branches:
- "**"
push:
branches:
- "main"
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Set up MySQL 5.7
uses: mirromutth/[email protected]
with:
mysql version: 5.7
mysql root password: 'root'
- name: Checkout
uses: actions/checkout@v4
- name: Set up PHP Version 8.1
uses: shivammathur/setup-php@v2
with:
php-version: 8.1
tools: composer:v2
- name: Install dependencies
run: composer install --no-progress
- name: Unit Tests
run: |
export "UNIT_XML"=Tests/UnitTests.xml
.Build/bin/phpunit --coverage-filter Classes --coverage-clover=unittest-coverage.clover --colors -c $UNIT_XML Tests/Unit
- name: Functional Tests
run: |
export "FUNCTIONAL_XML"=Tests/FunctionalTests.xml
.Build/bin/phpunit --coverage-filter Classes --coverage-clover=functional-coverage.clover --colors -c $FUNCTIONAL_XML Tests/Functional --process-isolation
env:
typo3DatabaseHost: 127.0.0.1
typo3DatabaseName: typo3
typo3DatabasePassword: root
typo3DatabaseUsername: root
- name: Upload coverage results to Coveralls
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
composer global require php-coveralls/php-coveralls --no-progress --no-suggest --no-interaction
/home/runner/.composer/vendor/bin/php-coveralls -c .coveralls.yml -vvv --json_path=var/log/coveralls-upload.json
continue-on-error: true