Skip to content

Commit

Permalink
Merge pull request #1922 from rennokki/refactor/coveralls-to-codecov
Browse files Browse the repository at this point in the history
[refactor] Replaced Coveralls with Codecov
  • Loading branch information
jenssegers committed Jan 23, 2020
2 parents 3e5e9de + 46a1d6d commit 30e2000
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 21 deletions.
24 changes: 11 additions & 13 deletions .github/workflows/build-ci.yml
Expand Up @@ -27,20 +27,20 @@ jobs:
MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
MYSQL_DATABASE: 'unittest'
MYSQL_ROOT_PASSWORD:
name: PHP ${{ matrix.php }} with mongo ${{ matrix.mongodb }}
name: PHP v${{ matrix.php }} with Mongo v${{ matrix.mongodb }}

steps:
- uses: actions/checkout@v1
- name: Show php version
- name: Show PHP version
run: php${{ matrix.php }} -v && composer -V
- name: Debug if needed
- name: Show Docker version
run: if [[ "$DEBUG" == "true" ]]; then docker version && env; fi
env:
DEBUG: ${{secrets.DEBUG}}
- name: Get Composer Cache Directory
- name: Download Composer cache dependencies from cache
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: Cache dependencies
- name: Cache Composer dependencies
uses: actions/cache@v1
with:
path: ${{ steps.composer-cache.outputs.dir }}
Expand All @@ -49,16 +49,14 @@ jobs:
- name: Install dependencies
run: |
composer install --no-interaction
- name: Generating code coverage
- name: Run tests
run: |
mkdir -p build/logs
./vendor/bin/phpunit --coverage-clover build/logs/clover.xml
./vendor/bin/phpunit --coverage-clover coverage.xml
env:
MONGO_HOST: 0.0.0.0
MYSQL_HOST: 0.0.0.0
MYSQL_PORT: 3307
- name: Send coveralls
run: vendor/bin/php-coveralls -v
env:
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
6 changes: 5 additions & 1 deletion README.md
@@ -1,7 +1,11 @@
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.*

Expand Down
7 changes: 0 additions & 7 deletions composer.json
Expand Up @@ -29,16 +29,9 @@
"phpunit/phpunit": "^6.0|^7.0|^8.0",
"orchestra/testbench": "^3.1|^4.0",
"mockery/mockery": "^1.0",
"php-coveralls/php-coveralls": "dev-add-support-for-github-actions",
"doctrine/dbal": "^2.5",
"phpunit/phpcov": "5.0.0"
},
"repositories": [
{
"type": "vcs",
"url": "https://github.com/Smolevich/php-coveralls"
}
],
"autoload": {
"psr-0": {
"Jenssegers\\Mongodb": "src/"
Expand Down

0 comments on commit 30e2000

Please sign in to comment.