orchestra testbench as dev dependency! #89
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: PHP Coverage | |
on: [push] | |
jobs: | |
phpunit: | |
runs-on: ubuntu-latest | |
env: | |
CC_TEST_REPORTER_ID: 61a7af044e21a62d8d9868b93a8ece2d68566dd63a0a34e4065d1aaf96b63a47 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/checkout@master | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 8.2 | |
coverage: xdebug | |
- name: Install Composer Dependencies | |
run: composer install --no-progress --prefer-dist --optimize-autoloader | |
- name: Code Climate Setup | |
run: | | |
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter && chmod +x ./cc-test-reporter | |
./cc-test-reporter before-build | |
- name: Run Tests | |
run: | | |
php vendor/bin/pest --coverage-clover clover.xml --configuration phpunit.xml tests/Unit | |
./cc-test-reporter after-build -t clover --exit-code $? |