ci: add token #8
This file contains hidden or 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 and coverage | |
on: | |
- push | |
- pull_request | |
jobs: | |
run: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up php 8.4 | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: "8.4" | |
- name: Install dependencies | |
run: composer install | |
- name: Run tests and collect coverage | |
run: vendor/bin/phpunit --coverage-clover coverage.xml | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v5 | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |