Skip to content

Commit

Permalink
Add codecoverage report via codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
bastian-schur committed Mar 13, 2024
1 parent 0a37b32 commit 6f43ada
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
20 changes: 12 additions & 8 deletions .github/workflows/unittests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,15 @@ jobs:
matrix:
php-versions: ['8.1', '8.2', '8.3']
steps:
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
- uses: actions/checkout@v4
- name: Install Dependencies
run: composer install --no-ansi --no-interaction --prefer-dist
- name: Execute tests (Unit and Feature tests) via Pest PHP
run: vendor/bin/pest
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
- uses: actions/checkout@v4
- name: Install Dependencies
run: composer install --no-ansi --no-interaction --prefer-dist
- name: Execute tests (Unit and Feature tests) via Pest PHP
run: vendor/bin/pest --coverage-cobertura coverage.xml
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV }}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
[![License](https://poser.pugx.org/nodus-it/livewire-forms/license)](https://packagist.org/packages/nodus-it/livewire-forms)
[![Latest Stable Version](https://poser.pugx.org/nodus-it/livewire-forms/v/stable)](https://packagist.org/packages/nodus-it/livewire-forms)
[![Total Downloads](https://poser.pugx.org/nodus-it/livewire-forms/downloads)](https://packagist.org/packages/nodus-it/livewire-forms)
[![Build Status](https://travis-ci.com/nodus-it/livewire-datatables.svg?branch=master)](https://travis-ci.com/nodus-it/livewire-forms)
[![Unit-Tests](https://github.com/nodus-it/livewire-forms/actions/workflows/unittests.yml/badge.svg)](https://github.com/nodus-it/livewire-forms/actions/workflows/unittests.yml)
[![codecov](https://codecov.io/gh/nodus-it/livewire-datatables/branch/master/graph/badge.svg)](https://codecov.io/gh/nodus-it/livewire-forms)

_An awesome package for easy dynamic forms with **Laravel Livewire** and **Bootstrap v4**._
Expand Down

0 comments on commit 6f43ada

Please sign in to comment.