mirror of
https://github.com/kevin-DL/LaravelShoppingcart.git
synced 2026-01-11 18:54:33 +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:
|
||||
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
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
## LaravelShoppingcart
|
||||
[](https://travis-ci.org/bumbummen99/LaravelShoppingcart)
|
||||
[](https://codecov.io/gh/bumbummen99/LaravelShoppingcart)
|
||||
[](https://styleci.io/repos/152610878)
|
||||
[](https://packagist.org/packages/bumbummen99/shoppingcart)
|
||||
|
||||
Reference in New Issue
Block a user