Skip to content

Bump codecov/codecov-action from 4 to 5 #19

Bump codecov/codecov-action from 4 to 5

Bump codecov/codecov-action from 4 to 5 #19

Workflow file for this run

name: Tests
on:
workflow_dispatch:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
phpunit:
name: PHPUnit
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
coverage: xdebug
- name: Setup problem matchers
run: |
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
- name: Install composer dependencies
uses: ramsey/composer-install@v3
- name: List Installed Dependencies
run: composer show -D
- name: Execute tests
run: vendor/bin/phpunit
env:
XDEBUG_MODE: coverage
- name: Upload to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./build/coverage.xml
verbose: true