Skip to content

Commit

Permalink
Merge branch 'main' into renovate/phpunit-phpunit-11.x
Browse files Browse the repository at this point in the history
  • Loading branch information
eliashaeussler committed Mar 22, 2024
2 parents 0393c1f + 666c784 commit 6fc2582
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 13 deletions.
1 change: 0 additions & 1 deletion .gitattributes
Expand Up @@ -7,7 +7,6 @@
/.gitattributes export-ignore
/.gitignore export-ignore
/.php-cs-fixer.php export-ignore
/codecov.yml export-ignore
/CODEOWNERS export-ignore
/composer.lock export-ignore
/CONTRIBUTING.md export-ignore
Expand Down
2 changes: 1 addition & 1 deletion .github/settings.yml
Expand Up @@ -85,7 +85,7 @@ branches:
- 'Tests (PHP 8.2 & highest dependencies)'
- 'Tests (PHP 8.2 & lowest dependencies)'
- 'Test coverage'
- 'codecov/project'
- 'coverage/coveralls'
enforce_admins: false
required_linear_history: true
restrictions: null
39 changes: 31 additions & 8 deletions .github/workflows/tests.yaml
Expand Up @@ -66,22 +66,45 @@ jobs:
- name: Run tests with coverage
run: composer test:coverage

# Report coverage
# Upload artifact
- name: Fix coverage path
working-directory: .build/coverage
run: sed -i 's#/home/runner/work/typo3-codeception-helper/typo3-codeception-helper#${{ github.workspace }}#g' clover.xml
- name: Upload coverage artifact
uses: actions/upload-artifact@v4
with:
name: coverage
path: .build/coverage/clover.xml
retention-days: 7

coverage-report:
name: Report test coverage
runs-on: ubuntu-latest
needs: coverage
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

# Download artifact
- name: Download coverage artifact
id: download
uses: actions/download-artifact@v4
with:
name: coverage

# CodeClimate
- 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@v4
${{ steps.download.outputs.download-path }}/clover.xml:clover
# Coveralls
- name: Coveralls report
uses: coverallsapp/github-action@v2
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: .build/coverage
fail_ci_if_error: true
verbose: true
file: ${{ steps.download.outputs.download-path }}/clover.xml
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -2,7 +2,7 @@

# TYPO3 Codeception Helper

[![Coverage](https://img.shields.io/codecov/c/github/eliashaeussler/typo3-codeception-helper?logo=codecov&token=4BM8pdRAmL)](https://codecov.io/gh/eliashaeussler/typo3-codeception-helper)
[![Coverage](https://img.shields.io/coverallsCoverage/github/eliashaeussler/typo3-codeception-helper?logo=coveralls)](https://coveralls.io/github/eliashaeussler/typo3-codeception-helper)
[![Maintainability](https://img.shields.io/codeclimate/maintainability/eliashaeussler/typo3-codeception-helper?logo=codeclimate)](https://codeclimate.com/github/eliashaeussler/typo3-codeception-helper/maintainability)
[![CGL](https://img.shields.io/github/actions/workflow/status/eliashaeussler/typo3-codeception-helper/cgl.yaml?label=cgl&logo=github)](https://github.com/eliashaeussler/typo3-codeception-helper/actions/workflows/cgl.yaml)
[![Tests](https://img.shields.io/github/actions/workflow/status/eliashaeussler/typo3-codeception-helper/tests.yaml?label=tests&logo=github)](https://github.com/eliashaeussler/typo3-codeception-helper/actions/workflows/tests.yaml)
Expand Down
2 changes: 0 additions & 2 deletions codecov.yml

This file was deleted.

0 comments on commit 6fc2582

Please sign in to comment.