Skip to content

Commit

Permalink
Merge pull request #83 from Yoast/JRF/ghactions-various-tweaks
Browse files Browse the repository at this point in the history
GH Actions: various tweaks
  • Loading branch information
jrfnl authored Nov 4, 2022
2 parents b0c727e + 00bf401 commit 57b2f9a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 16 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/cs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,9 @@ jobs:

# Check the code-style consistency of the PHP files.
- name: Check PHP code style
continue-on-error: true
id: phpcs
run: composer check-cs -- --report-full --report-checkstyle=./phpcs-report.xml

- name: Show PHPCS results in PR
if: ${{ always() && steps.phpcs.outcome == 'failure' }}
run: cs2pr ./phpcs-report.xml
2 changes: 0 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ jobs:

name: "Lint: PHP ${{ matrix.php }}"

continue-on-error: ${{ matrix.php == '8.2' }}

steps:
- name: Checkout code
uses: actions/checkout@v3
Expand Down
21 changes: 8 additions & 13 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:

strategy:
matrix:
php: ['5.4', '5.5', '5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1']
php: ['5.4', '5.5', '5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2']
phpunit: ['auto']
experimental: [false]

Expand Down Expand Up @@ -55,13 +55,16 @@ jobs:
- php: '8.0'
phpunit: '9.3.0'
experimental: false
- php: '8.1'
phpunit: '9.3.0'
experimental: false

# Experimental builds.
- php: '8.2'
phpunit: 'auto'
- php: '8.1'
phpunit: '^10.0'
experimental: true

- php: '8.1'
- php: '8.2'
phpunit: '^10.0'
experimental: true

Expand All @@ -86,17 +89,9 @@ jobs:

# Install dependencies and handle caching in one go.
# @link https://github.com/marketplace/actions/install-composer-dependencies
- name: Install Composer dependencies for PHP < 8.2
if: ${{ matrix.php < 8.2 }}
- name: Install Composer dependencies
uses: "ramsey/composer-install@v2"

# For PHP 8.2 and above, we need to install with ignore platform reqs as not all dependencies allow it yet.
- name: Install Composer dependencies for PHP >= 8.2
if: ${{ matrix.php >= 8.2 }}
uses: "ramsey/composer-install@v2"
with:
composer-options: --ignore-platform-reqs

- name: Run the unit tests
if: ${{ matrix.phpunit != '^10.0' }}
run: composer test
Expand Down

0 comments on commit 57b2f9a

Please sign in to comment.