Skip to content

Merge remote-tracking branch 'origin/main' #19

Merge remote-tracking branch 'origin/main'

Merge remote-tracking branch 'origin/main' #19

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