doctrine 3 #15
Workflow file for this run
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
name: Tests | |
on: [ push, pull_request ] | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 8.3 | |
coverage: pcov | |
- name: Composer install | |
run: composer install --dev --no-progress | |
- name: Check coding standard | |
run: vendor/bin/ecs | |
- name: Check phpstan | |
run: vendor/bin/phpstan | |
- name: Check tests | |
run: vendor/bin/tester tests -C --coverage coverage.xml --coverage-src ./src | |
- name: Upload coverage | |
env: | |
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
composer global require php-coveralls/php-coveralls | |
php-coveralls --coverage_clover=coverage.xml --json_path=upload.json |