Change method and improve comments (example) #2373
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] | |
jobs: | |
laravel-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup PHP 🔧 | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 8.1 | |
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick | |
coverage: pcov | |
tools: composer:v2 | |
- name: Validate composer.json and composer.lock 👀 | |
run: composer validate | |
- name: Install Dependencies 🔧 | |
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist | |
- name: Execute tests (Unit and Feature tests) via PHPUnit 🧪 | |
run: vendor/bin/phpunit --coverage-clover=coverage.xml | |
- name: Submit code coverage report 🔭 | |
run: bash <(curl -s https://codecov.io/bash) |