Skip to content

Commit

Permalink
coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
pulkitjalan committed Jun 30, 2024
1 parent 622f243 commit 90c312f
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,12 @@ jobs:
matrix:
php: [8.3, 8.2, 8.1]
laravel: ["^11.0", "^10.0"]
dependency-version: [prefer-lowest, prefer-stable]
exclude:
- laravel: "^11.0"
php: 8.1

name: P${{ matrix.php }} - L${{ matrix.laravel }}
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }}

steps:
- name: Checkout code
Expand All @@ -34,12 +35,18 @@ jobs:
- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-update
composer update --prefer-stable --prefer-dist --no-interaction --no-suggest
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
- name: Execute tests
- name: Execute tests - without coverage
if: matrix.dependency-version != 'prefer-stable'
run: vendor/bin/pest

- name: Execute tests - with coverage
if: matrix.dependency-version == 'prefer-stable'
run: vendor/bin/pest --coverage

- name: Upload coverage reports to Codecov
if: matrix.dependency-version == 'prefer-stable'
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand Down

0 comments on commit 90c312f

Please sign in to comment.