Skip to content

Commit

Permalink
Update GH actions
Browse files Browse the repository at this point in the history
  • Loading branch information
philipobenito committed Nov 9, 2024
1 parent da65872 commit c62a6de
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:

- uses: shivammathur/setup-php@v2
with:
php-version: 7.2
php-version: 8.4
extensions: curl, mbstring
coverage: none
tools: composer:v2, cs2pr
Expand All @@ -27,16 +27,9 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
php: ['7.2', '7.3', '7.4']
php: ['8.1', '8.2', '8.3', '8.4']
coverage: [true]
composer-flags: ['']
include:
- php: '8.0'
coverage: false
composer-flags: '--ignore-platform-req=php'
- php: '7.2'
coverage: false
composer-flags: '--prefer-lowest'

steps:
- uses: actions/checkout@v2
Expand All @@ -50,11 +43,7 @@ jobs:
coverage: pcov
tools: composer:v2

- run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"

- name: "Use PHPUnit 9.3+ on PHP 8"
run: composer require --no-update --dev phpunit/phpunit:^9.3
if: "matrix.php == '8.0'"
# - run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"

- run: composer update --no-progress ${{ matrix.composer-flags }}

Expand All @@ -76,7 +65,7 @@ jobs:

- uses: shivammathur/setup-php@v2
with:
php-version: 7.2
php-version: 8.4
extensions: curl, mbstring
coverage: none
tools: composer:v2
Expand Down

0 comments on commit c62a6de

Please sign in to comment.