mirror of https://github.com/FriendsOfTYPO3/tea.git synced 2024-11-25 00:56:12 +01:00

[TASK] Add more debug information to the coverage CI job (#1262)

This helps track down problems with the code coverage files.
This commit is contained in:
Oliver Klee 2024-05-06 06:28:54 +02:00 committed by GitHub
parent f783321c52
commit 0fcd109e45
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -33,6 +33,8 @@ jobs:
ini-values: pcov.directory=Classes ini-values: pcov.directory=Classes
- name: "Show Composer version" - name: "Show Composer version"
run: composer --version run: composer --version
- name: "Show the Composer configuration"
run: composer config --global --list
- name: "Cache dependencies installed with composer" - name: "Cache dependencies installed with composer"
uses: actions/cache@v4 uses: actions/cache@v4
with: with:
@ -59,6 +61,8 @@ jobs:
run: "sudo /etc/init.d/mysql start" run: "sudo /etc/init.d/mysql start"
- name: "Run unit tests with coverage" - name: "Run unit tests with coverage"
run: composer ci:coverage:unit run: composer ci:coverage:unit
- name: "Show generated coverage files"
run: "ls -lahR .Build/coverage/"
- name: "Run functional tests with coverage" - name: "Run functional tests with coverage"
run: | run: |
export typo3DatabaseName="$DB_DATABASE"; export typo3DatabaseName="$DB_DATABASE";
@ -66,8 +70,12 @@ jobs:
export typo3DatabaseUsername="$DB_USER"; export typo3DatabaseUsername="$DB_USER";
export typo3DatabasePassword="$DB_PASSWORD"; export typo3DatabasePassword="$DB_PASSWORD";
composer ci:coverage:functional composer ci:coverage:functional
- name: "Show generated coverage files"
run: "ls -lahR .Build/coverage/"
- name: "Merge coverage results" - name: "Merge coverage results"
run: composer ci:coverage:merge run: composer ci:coverage:merge
- name: "Show merged coverage files"
run: "ls -lahR ./.Build/logs/"
- name: "Upload coverage results to Coveralls" - name: "Upload coverage results to Coveralls"
env: env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}