Add additional checks on the database connection #74
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# .github/workflows/code_coverage.yaml | |
name: Code_Coverage | |
on: ["pull_request"] | |
jobs: | |
code_coverage: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 8.2 | |
coverage: pcov | |
# Implicitly runs `composer tests` in post update cmd. So PHPCS, MD and other static analysis is executed at | |
# this point. | |
- run: composer install --no-progress | |
- run: vendor/bin/phpunit --coverage-clover build/logs/clover.xml | |
- uses: codecov/codecov-action@v3 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
files: build/logs/clover.xml |