From 6f43adad225e6d4c955ebd8f78d66f9f3df6b9e9 Mon Sep 17 00:00:00 2001 From: Bastian Schur Date: Wed, 13 Mar 2024 20:46:17 +0100 Subject: [PATCH] Add codecoverage report via codecov --- .github/workflows/unittests.yml | 20 ++++++++++++-------- README.md | 2 +- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/.github/workflows/unittests.yml b/.github/workflows/unittests.yml index a34361a..23b7e4d 100644 --- a/.github/workflows/unittests.yml +++ b/.github/workflows/unittests.yml @@ -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 }} diff --git a/README.md b/README.md index 63b8f47..2416a3d 100644 --- a/README.md +++ b/README.md @@ -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**._