ci: standardize PHP matrix to 8.1/8.2/8.3, PHPCS continue-on-error

This commit is contained in:
peptiderepo
2026-04-26 11:55:55 +07:00
parent e11da612aa
commit f5b3690495

View File

@@ -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