fix: support both snake_case and camelCase versions of impression data #581
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.3 | |
- 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 }} |