Skip to content

Commit

Permalink
try new WF for PHP tests
Browse files Browse the repository at this point in the history
  • Loading branch information
overclokk committed Jul 27, 2024
1 parent d49bd70 commit 5982105
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,37 @@ on:

jobs:
tests:
name: Test on PHP ${{ matrix.php_versions }}
name: Test on PHP ${{ matrix.php }}

runs-on: ubuntu-latest
continue-on-error: ${{ matrix.php_versions == '8.1' }}
continue-on-error: ${{ matrix.php == '8.1' }}
if: "!contains(github.event.head_commit.message, '--skip ci') && !github.event.pull_request.draft"

strategy:
matrix:
php_versions: ['7.4', '8.0', '8.1']
php:
- '7.4'
- '8.0'
dependencies:
- "lowest"
- "highest"
include:
- php: '8.1'
composer-options: "--ignore-platform-reqs"

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php_versions }}
php-version: ${{ matrix.php }}
coverage: xdebug2

- uses: ramsey/composer-install@v2
- uses: ramsey/composer-install@v3
with:
dependency-versions: ${{ matrix.dependencies }}
composer-options: ${{ matrix.composer-options }}

- name: Run test suite
run: vendor/bin/codecept run unit --coverage-text
Expand Down

0 comments on commit 5982105

Please sign in to comment.