[TASK] Update phpstan/phpstan-symfony to v1.4.12 #7551
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests | |
on: | |
push: | |
branches: | |
- main | |
- 'renovate/**' | |
pull_request: | |
branches: | |
- main | |
jobs: | |
# Job: Run unit tests | |
tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
# Prepare environment | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 8.3 | |
tools: composer:v2 | |
coverage: pcov | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: 'npm' | |
# Install dependencies | |
- name: Install Composer dependencies | |
uses: ramsey/composer-install@v3 | |
- name: Install node modules | |
run: npm ci | |
# Build Frontend assets (necessary for application tests) | |
- name: Build Frontend assets | |
run: npm run build | |
# Run tests | |
- name: Build coverage directory | |
run: mkdir -p .build/coverage | |
- name: Run tests with coverage | |
run: composer test:coverage | |
# Upload artifact | |
- name: Fix coverage path | |
working-directory: .build/coverage | |
run: sed -i 's#/home/runner/work/typo3-badges/typo3-badges#${{ 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: tests | |
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@v9.0.0 | |
if: env.CC_TEST_REPORTER_ID | |
env: | |
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} | |
with: | |
coverageLocations: | | |
${{ steps.download.outputs.download-path }}/clover.xml:clover | |
# Coveralls | |
- name: Coveralls report | |
uses: coverallsapp/github-action@v2 | |
with: | |
file: ${{ steps.download.outputs.download-path }}/clover.xml |