ci: standardize PHP matrix to 8.1/8.2/8.3, PHPCS continue-on-error
This commit is contained in:
8
.github/workflows/ci.yml
vendored
8
.github/workflows/ci.yml
vendored
@@ -17,7 +17,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
php: ['7.4', '8.1', '8.3']
|
php: ['8.1', '8.2', '8.3']
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
@@ -46,8 +46,8 @@ jobs:
|
|||||||
composer install --no-interaction --prefer-dist --no-progress
|
composer install --no-interaction --prefer-dist --no-progress
|
||||||
|
|
||||||
- name: Run PHPCS with WordPress-Core standard
|
- name: Run PHPCS with WordPress-Core standard
|
||||||
run: |
|
run: composer run lint
|
||||||
composer run lint || test $? -eq 2 # exit 2 = warnings-only, not a build failure
|
continue-on-error: true
|
||||||
|
|
||||||
# ── PHPUnit Tests ────────────────────────────────────────────────
|
# ── PHPUnit Tests ────────────────────────────────────────────────
|
||||||
test-phpunit:
|
test-phpunit:
|
||||||
@@ -55,7 +55,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
php: ['7.4', '8.1', '8.3']
|
php: ['8.1', '8.2', '8.3']
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user