diff --git a/.github/workflows/continuous_integration.yml b/.github/workflows/continuous_integration.yml index a64e09d68e..84347e5540 100644 --- a/.github/workflows/continuous_integration.yml +++ b/.github/workflows/continuous_integration.yml @@ -74,21 +74,22 @@ jobs: - name: "Run static code analysis with phpstan/phpstan" run: "composer phpstan" - - name: "Run coding standard checks with squizlabs/php_codesniffer" - run: "composer cs-check" + - name: "Run coding standard checks with squizlabs/php_codesniffer on minimum supported PHP version" + if: matrix.php-version == '8.1' + run: composer cs-check - name: "Archive code coverage results" uses: actions/upload-artifact@v4 with: - name: codeCoverage-${{ matrix.php-version }} + name: codeCoverage-${{ matrix.php-version }}-${{ github.run_id }} path: "build" overwrite: true - uses: codecov/codecov-action@v5.1.2 # upload the coverage to codecov with: fail_ci_if_error: false # optional (default = false) - Need CODECOV_TOKEN - # Do not upload in forks, and only on php8.3, latest deps - if: ${{ github.repository == 'thecodingmachine/graphqlite' && matrix.php-version == '8.3' && matrix.install-args == '' }} + # Do not upload in forks, and only on php8.4, latest deps + if: ${{ github.repository == 'thecodingmachine/graphqlite' && matrix.php-version == '8.4' && matrix.install-args == '' }} examples: name: Check Examples @@ -103,7 +104,7 @@ jobs: - name: "Install PHP with extensions" uses: "shivammathur/setup-php@v2" with: - php-version: "8.2" + php-version: "8.4" tools: composer:v2 - name: "Install dependencies with composer" working-directory: "examples/${{ matrix.example }}" diff --git a/composer.json b/composer.json index 33751a0af7..15e98ee2bd 100644 --- a/composer.json +++ b/composer.json @@ -28,7 +28,7 @@ }, "require-dev": { "beberlei/porpaginas": "^2.0", - "doctrine/coding-standard": "^12.0", + "doctrine/coding-standard": "^12.0 || ^13.0", "ecodev/graphql-upload": "^7.0", "laminas/laminas-diactoros": "^3.5", "myclabs/php-enum": "^1.6.6",