Skip to content

Update sonar-project.yaml #13

Update sonar-project.yaml

Update sonar-project.yaml #13

Workflow file for this run

name: SonarQube Analysis
on:
push:
branches:
- DE-55463-SonarQubeIntegration
pull_request:
workflow_dispatch:
jobs:
phpunit:
runs-on: ubuntu-latest
strategy:
matrix:
php-version:
- 8.1
steps:
- name: Display Environment information
run: |
php --version
composer --version
- name: Checkout
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
extensions: mbstring, sockets
- name: Install dependencies
run: composer install --prefer-dist
- name: Run PHPUnit tests and Generate coverage report
run: vendor/bin/phpunit --coverage-clover=coverage.xml --testdox --verbose
sonarqube:
runs-on: ubuntu-latest
needs: phpunit
steps:
- name: Checkout
uses: actions/checkout@v2
- name: SonarQube Scan
uses: SonarSource/sonarqube-scan-action@master
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: "https://sonar.nice.com"