From f5b3690495b4119c0c63f7630e28bcdb40f9d763 Mon Sep 17 00:00:00 2001 From: peptiderepo Date: Sun, 26 Apr 2026 11:55:55 +0700 Subject: [PATCH] ci: standardize PHP matrix to 8.1/8.2/8.3, PHPCS continue-on-error --- .github/workflows/ci.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 353f03b..04a6547 100755 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,7 +17,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - php: ['7.4', '8.1', '8.3'] + php: ['8.1', '8.2', '8.3'] steps: - uses: actions/checkout@v4 @@ -49,7 +49,7 @@ jobs: | grep -v "class-peptide-news-logger\.php" \ | grep -v "DROP TABLE" \ | grep -v "TRUNCATE" \ - && [ ${PIPESTATUS[0]} -eq 0 ]; then + && [ \${PIPESTATUS[0]} -eq 0 ]; then echo "WARNING: Found potential unescaped SQL queries. Use wpdb->prepare() for all dynamic SQL." exit 1 fi @@ -89,7 +89,8 @@ jobs: run: composer install --prefer-dist --no-progress - name: Run PHPCS - run: vendor/bin/phpcs --standard=.phpcs.xml.dist || test $? -eq 2 # exit 2 = warnings-only, not a build failure + run: vendor/bin/phpcs --standard=.phpcs.xml.dist + continue-on-error: true # ── PHPUnit Tests ──────────────────────────────────────────────── phpunit: @@ -97,7 +98,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - php: ['7.4', '8.1', '8.3'] + php: ['8.1', '8.2', '8.3'] steps: - uses: actions/checkout@v4