Feat: Dependent features (#187) #488
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: Code Coverage | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
coverage: | |
name: Report Coverage | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 8.2 | |
- name: Checkout Code | |
uses: actions/checkout@v2 | |
with: | |
submodules: true | |
- name: Install Dependencies | |
run: composer install | |
- name: Generate Coverage | |
run: composer phpunit -- --coverage-clover ./build/logs/clover.xml | |
- name: Download Coverage Client | |
run: wget https://github.com/php-coveralls/php-coveralls/releases/download/v2.4.3/php-coveralls.phar | |
- name: Publish Coverage (Coveralls) | |
run: php php-coveralls.phar -v | |
env: | |
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} |