Skip to content

chore: Add Codecov badge (#9) #49

chore: Add Codecov badge (#9)

chore: Add Codecov badge (#9) #49

Workflow file for this run

name: CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
symfony-tests:
runs-on: ubuntu-latest
steps:
- uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
tools: phpunit, composer:v2
coverage: xdebug3
- uses: actions/checkout@v4
- name: Install Dependencies
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
- name: PHPStan
run: vendor/bin/phpstan
- name: PHPUnit
run: vendor/bin/phpunit --coverage-clover=coverage.xml
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}