Skip to content

Commit

Permalink
Check PHP Version.
Browse files Browse the repository at this point in the history
  • Loading branch information
SilasKenneth committed Feb 6, 2023
1 parent 3fccf87 commit b6a3d91
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/pr-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,11 @@ jobs:
- name: Run tests
run: ./vendor/bin/phpunit --coverage-clover=coverage.xml
- name: Fix code coverage paths
with:
php-version: '8.0'
if: php-version == '8.0'
run: sed -i 's@'$GITHUB_WORKSPACE'@/github/workspace/@g' coverage.xml
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
with:
php-version: '8.0'
if: php-version == '8.0'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

0 comments on commit b6a3d91

Please sign in to comment.