Add compatibility wity jaxon-php 4 #1150
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: SonarCloud | |
on: | |
push: | |
branches: | |
- '7.1' | |
pull_request: | |
types: [opened, synchronize, reopened] | |
tags-ignore: | |
- dependencies | |
jobs: | |
sonarcloud: | |
name: SonarCloud | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
php-version: [7.4] | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis | |
- name: Setup PHP ${{ matrix.php-version }} | |
uses: shivammathur/setup-php@master | |
with: | |
php-version: ${{ matrix.php-version }} | |
- name: Validate composer.json and composer.lock | |
run: composer validate | |
- name: Cache Composer packages | |
id: composer-cache | |
uses: actions/cache@v2 | |
with: | |
path: vendor | |
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }} | |
restore-keys: | | |
${{ runner.os }}-php- | |
- name: Install PHP dependencies | |
run: composer update --prefer-dist --no-progress --no-scripts | |
- name: Run test suite | |
run: composer run-script test | |
- name: Fix paths for Sonar | |
working-directory: ./build/reports/ | |
run: sed -i 's/\/home\/runner\/work\/lotgd-game\/lotgd-game\//\/github\/workspace\//g' phpunit.coverage.xml | |
- name: SonarCloud Scan | |
if: matrix.php-version == '7.4' | |
uses: SonarSource/sonarcloud-github-action@master | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} |