Skip to content

Commit

Permalink
chore: add codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
mdshack committed Jan 4, 2024
1 parent 15694a3 commit 5b6ba73
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ jobs:
runs-on: ubuntu-latest
needs: prepare
steps:
- name: Setup PHP with fail-fast
uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
tools: xdebug

- name: Download workspace
uses: actions/download-artifact@v4
with:
Expand All @@ -49,7 +55,14 @@ jobs:
- name: Run unit tests
run: |
chmod +x ${{ github.workspace }}/vendor/bin/pest
${{ github.workspace }}/vendor/bin/pest
${{ github.workspace }}/vendor/bin/pest --coverage-clover ./coverage.xml
- name: Upload to Codecov
uses: codecov/codecov-action@v2
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.xml
verbose: true

lint:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 5b6ba73

Please sign in to comment.