Skip to content

[TASK] Drop PHP 8.0 support #167

[TASK] Drop PHP 8.0 support

[TASK] Drop PHP 8.0 support #167

Workflow file for this run

name: ✔ with code analysis
on:
push:
branches:
- main
- develop
- premerge/*
- pre-merge
jobs:
compute:
uses: ./.github/workflows/compute.yml
test:
uses: ./.github/workflows/test.yml
sonar:
name: '✔ with SonarCloud'
needs: [ compute, test ]
env:
php: ${{ fromJson(needs.compute.outputs.php-single) }}
typo3: ${{ fromJson(needs.compute.outputs.typo3-single) }}
if: github.repository == 'IchHabRecht/content_defender'
runs-on: ${{ fromJson(needs.compute.outputs.os-single) }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Download PHPUnit logs
uses: actions/download-artifact@v4
with:
path: .Log
pattern: phpunit-logs-*
merge-multiple: true
- name: Store Composer cache directory
id: composer-cache
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
- uses: actions/cache/restore@v4
id: restore-composer-cache
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ env.typo3 }}-${{ env.php }}
restore-keys: |
${{ runner.os }}-composer-${{ env.typo3 }}-
${{ runner.os }}-composer-
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ env.php }}
extensions: mbstring, intl, pdo_sqlite, pdo_mysql
tools: composer:v2
- name: Environment Check
run: |
php --version
composer --version
find '.Log' -wholename '*.cov' | parallel --gnu 'echo ""; echo ""; echo "{}"; cat {}'
- name: Composer install
run: composer require --no-progress --no-suggest typo3/cms-core:"${{ env.typo3 }}" nimut/phpunit-merger
- name: Merging log and coverage files
run: |
.Build/bin/phpunit-merger coverage .Log/coverage/ .Log/coverage.xml;
.Build/bin/phpunit-merger log .Log/junit/ .Log/junit.xml;
- name: SonarCloud Scan
uses: sonarsource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}