mirror of
https://github.com/kevin-DL/LaravelShoppingcart.git
synced 2026-01-23 23:51:25 +00:00
code coverage action
This commit is contained in:
15
.github/workflows/php.yml
vendored
15
.github/workflows/php.yml
vendored
@@ -1,17 +1,17 @@
|
|||||||
name: Code Checks
|
name: CI Code Checks
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
|
||||||
branches: [ master ]
|
|
||||||
pull_request:
|
pull_request:
|
||||||
|
push:
|
||||||
branches: [ master ]
|
branches: [ master ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
run:
|
run:
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-18.04
|
||||||
strategy:
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
php-versions: ['7.1', '7.2']
|
php-versions: ['7.1', '7.2', '7.3', '7.4']
|
||||||
name: PHP ${{ matrix.php-versions }}
|
name: PHP ${{ matrix.php-versions }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
@@ -44,3 +44,10 @@ jobs:
|
|||||||
|
|
||||||
- name: Tests Coverage
|
- name: Tests Coverage
|
||||||
run: vendor/bin/phpunit --coverage-clover=coverage.xml
|
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
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
## LaravelShoppingcart
|
## LaravelShoppingcart
|
||||||
[](https://travis-ci.org/bumbummen99/LaravelShoppingcart)
|
|
||||||
[](https://codecov.io/gh/bumbummen99/LaravelShoppingcart)
|
[](https://codecov.io/gh/bumbummen99/LaravelShoppingcart)
|
||||||
[](https://styleci.io/repos/152610878)
|
[](https://styleci.io/repos/152610878)
|
||||||
[](https://packagist.org/packages/bumbummen99/shoppingcart)
|
[](https://packagist.org/packages/bumbummen99/shoppingcart)
|
||||||
|
|||||||
Reference in New Issue
Block a user