Skip to content

Bump phpunit/phpunit from 10.5.20 to 10.5.21 #331

Bump phpunit/phpunit from 10.5.20 to 10.5.21

Bump phpunit/phpunit from 10.5.20 to 10.5.21 #331

Workflow file for this run

name: Sonar
on: push
jobs:
Code-Quality:
runs-on: ubuntu-latest
if: github.actor != 'dependabot[bot]'
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install pcov
run: sudo apt install php-pcov
- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest
- name: Run tests
run: vendor/bin/phpunit --log-junit results.xml --coverage-clover coverage.xml
env:
XDEBUG_MODE: coverage
- name: Prepare files
run: sed -i 's#'`pwd`'/##' results.xml coverage.xml
- name: Sonar analysis
uses: sonarsource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}