Skip to content

[6.x] Allow for PHP 8.4 + Tests #59

[6.x] Allow for PHP 8.4 + Tests

[6.x] Allow for PHP 8.4 + Tests #59

Workflow file for this run

name: run-coverage
on:
push:
branches:
- master
- develop
pull_request:
jobs:
test:
runs-on: ubuntu-latest
name: Code Coverage
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Cache dependencies
uses: actions/cache@v4
with:
path: ~/.composer/cache/files
key: dependencies-code-coverage-composer-${{ hashFiles('composer.json') }}
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.2
- name: Install dependencies
run: composer update --prefer-stable --prefer-dist --no-interaction
- name: Execute tests
run: vendor/bin/phpunit --log-junit junit.xml
- name: Upload test results to Codecov
if: ${{ !cancelled() }}
uses: codecov/test-results-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}