Skip to content

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

Bump codecov/codecov-action from 4 to 5

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

Workflow file for this run

name: Codecov
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
codecov:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.1
# extensions:
coverage: pcov
- name: apt
if: runner.os == 'Linux'
run: |
sudo apt update
sudo apt install vorbis-tools flac
shell: bash
- name: Setup problem matchers
run: |
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
- name: Install dependencies
run: composer update --prefer-dist --no-interaction
- name: Execute tests
run: vendor/bin/pest --coverage
- name: Send code coverage
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
verbose: false