Commit 1b964996 authored by Smolevich's avatar Smolevich

Merge branch 'master' of github.com:jenssegers/laravel-mongodb into…

Merge branch 'master' of github.com:jenssegers/laravel-mongodb into add-use-new-library-for-coveralls
parents 24654aed 30e20005
...@@ -27,20 +27,20 @@ jobs: ...@@ -27,20 +27,20 @@ jobs:
MYSQL_ALLOW_EMPTY_PASSWORD: 'yes' MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
MYSQL_DATABASE: 'unittest' MYSQL_DATABASE: 'unittest'
MYSQL_ROOT_PASSWORD: MYSQL_ROOT_PASSWORD:
name: PHP ${{ matrix.php }} with mongo ${{ matrix.mongodb }} name: PHP v${{ matrix.php }} with Mongo v${{ matrix.mongodb }}
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v1
- name: Show php version - name: Show PHP version
run: php${{ matrix.php }} -v && composer -V run: php${{ matrix.php }} -v && composer -V
- name: Debug if needed - name: Show Docker version
run: if [[ "$DEBUG" == "true" ]]; then docker version && env; fi run: if [[ "$DEBUG" == "true" ]]; then docker version && env; fi
env: env:
DEBUG: ${{secrets.DEBUG}} DEBUG: ${{secrets.DEBUG}}
- name: Get Composer Cache Directory - name: Download Composer cache dependencies from cache
id: composer-cache id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)" run: echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: Cache dependencies - name: Cache Composer dependencies
uses: actions/cache@v1 uses: actions/cache@v1
with: with:
path: ${{ steps.composer-cache.outputs.dir }} path: ${{ steps.composer-cache.outputs.dir }}
...@@ -49,10 +49,9 @@ jobs: ...@@ -49,10 +49,9 @@ jobs:
- name: Install dependencies - name: Install dependencies
run: | run: |
composer install --no-interaction composer install --no-interaction
- name: Generating code coverage - name: Run tests
run: | run: |
mkdir -p build/logs ./vendor/bin/phpunit --coverage-clover coverage.xml
./vendor/bin/phpunit --coverage-clover build/logs/clover.xml
env: env:
MONGO_HOST: 0.0.0.0 MONGO_HOST: 0.0.0.0
MYSQL_HOST: 0.0.0.0 MYSQL_HOST: 0.0.0.0
...@@ -61,4 +60,7 @@ jobs: ...@@ -61,4 +60,7 @@ jobs:
run: vendor/bin/coveralls build/logs/clover.xml run: vendor/bin/coveralls build/logs/clover.xml
env: env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
continue-on-error: true - uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: false
Laravel MongoDB Laravel MongoDB
=============== ===============
[![Latest Stable Version](http://img.shields.io/github/release/jenssegers/laravel-mongodb.svg)](https://packagist.org/packages/jenssegers/mongodb) [![Total Downloads](http://img.shields.io/packagist/dm/jenssegers/mongodb.svg)](https://packagist.org/packages/jenssegers/mongodb) [![Build Status](https://img.shields.io/github/workflow/status/jenssegers/laravel-mongodb/CI)](https://github.com/jenssegers/laravel-mongodb/actions) [![Coverage Status](https://coveralls.io/repos/github/jenssegers/laravel-mongodb/badge.svg?branch=master)](https://coveralls.io/github/jenssegers/laravel-mongodb?branch=master) [![Donate](https://img.shields.io/badge/donate-paypal-blue.svg)](https://www.paypal.me/jenssegers) [![Latest Stable Version](http://img.shields.io/github/release/jenssegers/laravel-mongodb.svg)](https://packagist.org/packages/jenssegers/mongodb)
[![Total Downloads](http://img.shields.io/packagist/dm/jenssegers/mongodb.svg)](https://packagist.org/packages/jenssegers/mongodb)
[![Build Status](https://img.shields.io/github/workflow/status/jenssegers/laravel-mongodb/CI)](https://github.com/jenssegers/laravel-mongodb/actions)
[![codecov](https://codecov.io/gh/jenssegers/laravel-mongodb/branch/master/graph/badge.svg)](https://codecov.io/gh/jenssegers/laravel-mongodb/branch/master)
[![Donate](https://img.shields.io/badge/donate-paypal-blue.svg)](https://www.paypal.me/jenssegers)
An Eloquent model and Query builder with support for MongoDB, using the original Laravel API. *This library extends the original Laravel classes, so it uses exactly the same methods.* An Eloquent model and Query builder with support for MongoDB, using the original Laravel API. *This library extends the original Laravel classes, so it uses exactly the same methods.*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment