Update phpstan/phpstan-strict-rules requirement from ^0.12.1 to ^1.6.0 #44
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: Sonar Scan | |
on: [ push, pull_request_target ] | |
jobs: | |
sonar: | |
name: Sonar Scan | |
runs-on: ubuntu-latest | |
# always run on push events | |
# only run on pull_request_target event when pull request pulls from fork repository | |
if: > | |
github.event_name == 'push' || | |
github.event_name == 'pull_request_target' && github.event.pull_request.head.repo.full_name != github.repository | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- uses: shivammathur/setup-php@2.9.0 | |
with: | |
php-version: 8.0 | |
- run: composer install | |
- run: composer coverage-clover | |
- run: composer coverage-html | |
- name: Fix code coverage paths | |
run: sed -i 's/\/home\/runner\/work\/yoti-php-sdk-sandbox\/yoti-php-sdk-sandbox\//\/github\/workspace\//g' ./coverage/coverage.xml | |
- uses: sonarsource/sonarcloud-github-action@master | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} |