Skip to content

Commit 758b36e

Browse files
committed
Only run CS checks on the minimum supported version
1 parent 3b05516 commit 758b36e

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

.github/workflows/continuous_integration.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,8 @@ jobs:
7575
run: "composer phpstan"
7676

7777
- name: "Run coding standard checks with squizlabs/php_codesniffer"
78-
run: |
79-
php_version=$(php -r 'echo PHP_MAJOR_VERSION * 10000 + PHP_MINOR_VERSION * 100 + PHP_RELEASE_VERSION;')
80-
echo "Detected PHP version: $php_version"
81-
vendor/bin/phpcs --runtime-set php_version $php_version
78+
if: matrix.php-version == '8.1'
79+
run: composer cs-check
8280

8381
- name: "Archive code coverage results"
8482
uses: actions/upload-artifact@v4
@@ -90,8 +88,8 @@ jobs:
9088
- uses: codecov/codecov-action@v5.1.2 # upload the coverage to codecov
9189
with:
9290
fail_ci_if_error: false # optional (default = false) - Need CODECOV_TOKEN
93-
# Do not upload in forks, and only on php8.3, latest deps
94-
if: ${{ github.repository == 'thecodingmachine/graphqlite' && matrix.php-version == '8.3' && matrix.install-args == '' }}
91+
# Do not upload in forks, and only on php8.4, latest deps
92+
if: ${{ github.repository == 'thecodingmachine/graphqlite' && matrix.php-version == '8.4' && matrix.install-args == '' }}
9593

9694
examples:
9795
name: Check Examples

0 commit comments

Comments
 (0)