Code development platform for open source projects from the European Union institutions

Commit 911476a6 authored by Pol Dellaiera's avatar Pol Dellaiera
Browse files

ignore environment on PHP 8.2

PHP CS Fixer doesn't support PHP 8.2, this commit needs to be reverted as soon as it is supported.
parent 7ff2f6e2
Loading
Loading
Loading
Loading
+2 −6
Original line number Diff line number Diff line
@@ -33,30 +33,26 @@ jobs:
              run: |
                  git config --global core.autocrlf false
                  git config --global core.eol lf
              if: ${{ matrix.php }} != 8.2

            - name: Checkout
              uses: actions/checkout@v3
              if: ${{ matrix.php }} != 8.2

            - name: Install PHP
              uses: shivammathur/setup-php@v2
              with:
                  php-version: ${{ matrix.php }}
                  coverage: pcov
              if: ${{ matrix.php }} != 8.2

            - name: Install dependencies
              uses: ramsey/composer-install@v2
              if: ${{ matrix.php }} != 8.2

            - name: Run Grumphp
              run: vendor/bin/grumphp run
              if: ${{ matrix.php }} != 8.2
              env:
                PHP_CS_FIXER_IGNORE_ENV: 1

            - name: Send Scrutinizer data
              run: |
                  composer require scrutinizer/ocular --dev
                  vendor/bin/ocular code-coverage:upload --format=php-clover build/logs/coverage/clover.xml
              continue-on-error: true
              if: ${{ matrix.php }} != 8.2