Skip to content

Commit

Permalink
Update codebase test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
nyamsprod committed Nov 9, 2024
1 parent c4c8528 commit 4ae7743
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ jobs:
matrix:
php: ['8.1', '8.2', '8.3']
stability: [prefer-lowest, prefer-stable]
include:
- php: '8.4'
flags: "--ignore-platform-req=php"
phpunit-flags: '--no-coverage'
stability: prefer-stable
steps:
- name: Checkout code
uses: actions/checkout@v3
Expand Down Expand Up @@ -45,11 +50,16 @@ jobs:

- name: Run Unit tests with coverage
run: composer phpunit -- ${{ matrix.phpunit-flags }}
if: ${{ matrix.php == '8.3' || matrix.php == '8.2' || matrix.php == '8.1'}}

- name: Run Unit tests without coverage
run: composer phpunit:min
if: ${{ matrix.php == '8.4'}}

- name: Run static analysis
run: composer phpstan
if: ${{ matrix.php == '8.2' && matrix.stability == 'prefer-stable'}}
if: ${{ matrix.php == '8.3' && matrix.stability == 'prefer-stable'}}

- name: Run Coding style rules
run: composer phpcs:fix
if: ${{ matrix.php == '8.2' && matrix.stability == 'prefer-stable'}}
if: ${{ matrix.php == '8.3' && matrix.stability == 'prefer-stable'}}

0 comments on commit 4ae7743

Please sign in to comment.