Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add PHP 8.3 to test matrix #28

Merged
merged 1 commit into from
Jul 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 20 additions & 7 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,26 +9,39 @@ jobs:
strategy:
matrix:
php-version:
- 8.2
- "8.2"
- "8.3"
steps:
- name: "Checkout repository"
- name: Checkout repository
uses: actions/checkout@v3

- name: "Install PHP with extensions"
- name: Install PHP with extensions
uses: shivammathur/setup-php@master
with:
tools: composer:v2
php-version: ${{ matrix.php-version }}
extensions: "mbstring"
coverage: xdebug

- name: "Install Composer dependencies & app config"
- name: Get Composer Cache Directory
id: composer-cache
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT

- name: Cache Composer
uses: actions/cache@v4
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-

- name: Install Composer dependencies
run: composer install --no-progress --no-interaction

- name: "Execute unit tests"
run: vendor/bin/phpunit --coverage-html coverage --coverage-clover 'coverage/clover.xml'
- name: Execute unit tests with code coverage
run: vendor/bin/phpunit --coverage-clover 'coverage/clover.xml'

- name: "Upload test coverage"
- name: Upload test coverage
uses: actions/upload-artifact@v3
with:
name: Test Coverage Report
Expand Down
Loading