Skip to content

Fixed errors with undefined vars #67

Fixed errors with undefined vars

Fixed errors with undefined vars #67

Workflow file for this run

name: IDMarinas Common Bundle Test Suite
on:
pull_request:
push:
branches:
- master
jobs:
build:
runs-on: ${{ matrix.operating-system }}
name: PHP ${{ matrix.php }} and Symfony ${{ matrix.symfony }}
strategy:
matrix:
operating-system: [ ubuntu-latest ]
php: [ '8.1', '8.2', '8.3', '8.4' ]
symfony: [ '5.4.*', '6.4.*', '7.0.*', '7.1.*', '7.2.*' ]
exclude:
- php: '8.1'
symfony: '7.0.*'
- php: '8.1'
symfony: '7.1.*'
- php: '8.1'
symfony: '7.2.*'
steps:
- uses: actions/checkout@master
with:
# Shallow clones should be disabled for a better relevancy of analysis
fetch-depth: ${{ (matrix.php == '8.1' && matrix.symfony == '5.4.*') && '0' || '1' }}
- name: Setup PHP ${{ matrix.php }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: flex
- name: Download dependencies
env:
SYMFONY_REQUIRE: ${{ matrix.symfony }}
uses: ramsey/composer-install@v2
- name: Run test suite on PHP ${{ matrix.php }} and Symfony ${{ matrix.symfony }}
run: ./vendor/bin/phpunit
- name: Fix paths for Sonar
if: matrix.php == '8.1' && matrix.symfony == '5.4.*'
working-directory: ./build/reports/
run: sed -i 's/\/home\/runner\/work\/common-bundle\/common-bundle\//\/github\/workspace\//g' phpunit.coverage.xml
- name: SonarCloud Scan
if: matrix.php == '8.1' && matrix.symfony == '5.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 }}