Skip to content

Commit

Permalink
feature/ci: Update test workflow
Browse files Browse the repository at this point in the history
PHP 8.3 is no longer experimental.
Only upload code coverage on latest PHP, stable deps.
  • Loading branch information
brandon14 committed Nov 28, 2023
1 parent 84d9f54 commit 6a07af5
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,9 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
php: [7.4, 8.0, 8.1, 8.2]
php: [7.4, 8.0, 8.1, 8.2, 8.3]
dependency-version: [prefer-lowest, prefer-stable]
experimental: [false]
include:
- php: 8.3
os: ubuntu-latest
dependency-version: prefer-lowest
experimental: true
- php: 8.3
os: ubuntu-latest
dependency-version: prefer-stable
experimental: true

name: PHP-${{ matrix.php }} - OS-${{ matrix.os }} - ${{ matrix.dependency-version }} - Experimental- ${{ matrix.experimental }}

Expand Down Expand Up @@ -54,15 +45,15 @@ jobs:
run: composer run-script test

- name: Upload coverage
if: ${{ github.event_name != 'schedule' && matrix.php == '8.2' }}
if: ${{ github.event_name != 'schedule' && matrix.php == '8.3' && matrix.dependency-version == 'prefer-stable' }}
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
fail_ci_if_error: true
files: ./coverage.xml
- name: Upload code climate
if: ${{ github.event_name != 'schedule' && matrix.php == '8.2' }}
if: ${{ github.event_name != 'schedule' && matrix.php == '8.3' && matrix.dependency-version == 'prefer-stable' }}
uses: paambaati/codeclimate-action@v5
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
Expand Down

0 comments on commit 6a07af5

Please sign in to comment.