Created codecov.yml workflow and added the codecov badge in the READM… #18
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: Test | |
on: push | |
jobs: | |
test: | |
name: "PHPUnit (PHP ${{ matrix.php-versions }})" | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
php-versions: ["8.1", "8.2", "8.3"] | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v2 | |
- name: Install PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: "${{ matrix.php-versions }}" | |
- name: Install Composer | |
run: composer update --no-progress --prefer-dist --optimize-autoloader | |
- name: Run Tests | |
run: composer run-script test |