From 592169e4fb01d9537dfe7b1dddec03b4118551f0 Mon Sep 17 00:00:00 2001 From: Oleg Bespalov Date: Thu, 1 Oct 2020 16:20:59 +0200 Subject: [PATCH] code coverage action --- .github/workflows/php.yml | 15 +++++++++++---- README.md | 1 - 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index a2fc220..cba2e2a 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -1,17 +1,17 @@ -name: Code Checks +name: CI Code Checks on: - push: - branches: [ master ] pull_request: + push: branches: [ master ] jobs: run: runs-on: ubuntu-18.04 strategy: + fail-fast: false matrix: - php-versions: ['7.1', '7.2'] + php-versions: ['7.1', '7.2', '7.3', '7.4'] name: PHP ${{ matrix.php-versions }} steps: - name: Checkout @@ -44,3 +44,10 @@ jobs: - name: Tests Coverage run: vendor/bin/phpunit --coverage-clover=coverage.xml + + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v1 + with: + file: ./coverage.xml + flags: unittests + fail_ci_if_error: true diff --git a/README.md b/README.md index 017124b..c681a73 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,4 @@ ## LaravelShoppingcart -[![Build Status](https://travis-ci.org/bumbummen99/LaravelShoppingcart.png?branch=master)](https://travis-ci.org/bumbummen99/LaravelShoppingcart) [![codecov](https://codecov.io/gh/bumbummen99/LaravelShoppingcart/branch/master/graph/badge.svg)](https://codecov.io/gh/bumbummen99/LaravelShoppingcart) [![StyleCI](https://styleci.io/repos/152610878/shield?branch=master)](https://styleci.io/repos/152610878) [![Total Downloads](https://poser.pugx.org/bumbummen99/shoppingcart/downloads.png)](https://packagist.org/packages/bumbummen99/shoppingcart)