Skip to content

Bump codecov/codecov-action from 3.1.5 to 4.0.1 #22

Bump codecov/codecov-action from 3.1.5 to 4.0.1

Bump codecov/codecov-action from 3.1.5 to 4.0.1 #22

name: run-tests
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
coverage:
name: Run and publish coverage
runs-on: ubuntu-latest
steps:
- name: Installing PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
coverage: "pcov"
ini-values: "memory_limit=-1"
- uses: actions/checkout@v4
- name: Install Composer Dependencies
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
- name: Execute coverage
run: php -dxdebug.mode=coverage ./vendor/bin/pest --coverage-clove ./.build/cache/coverage.xml
- name: "Publish coverage report to Codecov"
uses: "codecov/codecov-action@v4.0.1"
with:
files: ./.build/cache/coverage.xml
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}