Skip to content

Bump codecov/codecov-action from 4.3.0 to 4.3.1 #35

Bump codecov/codecov-action from 4.3.0 to 4.3.1

Bump codecov/codecov-action from 4.3.0 to 4.3.1 #35

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.3.1"
with:
files: ./.build/cache/coverage.xml
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}