code coverage action

This commit is contained in:
Oleg Bespalov
2020-10-01 16:20:59 +02:00
parent 5279b1a612
commit 592169e4fb
2 changed files with 11 additions and 5 deletions

View File

@@ -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

View File

@@ -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)