Unverified Commit 94119742 authored by rennokki's avatar rennokki Committed by GitHub

Merge branch 'master' into refactor/readme

parents 5fcac253 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,16 +49,14 @@ jobs: ...@@ -49,16 +49,14 @@ 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
MYSQL_PORT: 3307 MYSQL_PORT: 3307
- name: Send coveralls - uses: codecov/codecov-action@v1
run: vendor/bin/php-coveralls -v with:
env: token: ${{ secrets.CODECOV_TOKEN }}
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} fail_ci_if_error: false
continue-on-error: true
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)
This package adds functionalities to the Eloquent model and Query builder for MongoDB, using the original Laravel API. *This library extends the original Laravel classes, so it uses exactly the same methods.* This package adds functionalities to the Eloquent model and Query builder for MongoDB, using the original Laravel API. *This library extends the original Laravel classes, so it uses exactly the same methods.*
......
...@@ -29,16 +29,9 @@ ...@@ -29,16 +29,9 @@
"phpunit/phpunit": "^6.0|^7.0|^8.0", "phpunit/phpunit": "^6.0|^7.0|^8.0",
"orchestra/testbench": "^3.1|^4.0", "orchestra/testbench": "^3.1|^4.0",
"mockery/mockery": "^1.0", "mockery/mockery": "^1.0",
"php-coveralls/php-coveralls": "dev-add-support-for-github-actions",
"doctrine/dbal": "^2.5", "doctrine/dbal": "^2.5",
"phpunit/phpcov": "5.0.0" "phpunit/phpcov": "5.0.0"
}, },
"repositories": [
{
"type": "vcs",
"url": "https://github.com/Smolevich/php-coveralls"
}
],
"autoload": { "autoload": {
"psr-0": { "psr-0": {
"Jenssegers\\Mongodb": "src/" "Jenssegers\\Mongodb": "src/"
......
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