Skip to content

Commit e5fbedc

Browse files
authored
Merge pull request #2 from jenssegers/master
synking fork
2 parents d62b589 + 12adb39 commit e5fbedc

32 files changed

+925
-677
lines changed

.codacy.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
exclude_paths:
2+
- '.github/**'

.github/ISSUE_TEMPLATE/BUG_REPORT.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
name: "Bug report"
3+
about: 'Report errors or unexpected behavior.'
4+
---
5+
6+
- Laravel-mongodb Version: #.#.#
7+
- PHP Version: #.#.#
8+
- Database Driver & Version:
9+
10+
### Description:
11+
12+
### Steps to reproduce
13+
1.
14+
2.
15+
3.
16+
17+
### Expected behaviour
18+
Tell us what should happen
19+
20+
### Actual behaviour
21+
Tell us what happens instead
22+
23+
<details><summary><b>Logs</b>:</summary>
24+
Insert log.txt here (if necessary)
25+
</details>
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea.
4+
title: "[Feature Request] "
5+
6+
---
7+
8+
### Is your feature request related to a problem?
9+
A clear and concise description of what the problem is.
10+
11+
### Describe the solution you'd like
12+
A clear and concise description of what you want to happen.
13+
14+
### Describe alternatives you've considered
15+
A clear and concise description of any alternative solutions or features you've considered.
16+
17+
### Additional context
18+
Add any other context or screenshots about the feature request here.

.github/ISSUE_TEMPLATE/QUESTION.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
name: Question
3+
about: Ask a question.
4+
title: "[Question] "
5+
labels: 'question'
6+
assignees: ''
7+
8+
---

.github/workflows/build-ci.yml

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,12 @@ jobs:
1111
runs-on: ${{matrix.os}}
1212
strategy:
1313
matrix:
14-
php: [7.1, 7.2, 7.3, 7.4]
14+
php: ['7.1', '7.2', '7.3', '7.4']
1515
os: ['ubuntu-latest']
16+
mongodb: ['3.6', '4.0', '4.2']
1617
services:
1718
mongo:
18-
image: mongo
19+
image: mongo:${{ matrix.mongodb }}
1920
ports:
2021
- 27017:27017
2122
mysql:
@@ -26,20 +27,20 @@ jobs:
2627
MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
2728
MYSQL_DATABASE: 'unittest'
2829
MYSQL_ROOT_PASSWORD:
29-
name: PHP ${{ matrix.php }} Test ${{ matrix.env }}
30+
name: PHP v${{ matrix.php }} with Mongo v${{ matrix.mongodb }}
3031

3132
steps:
3233
- uses: actions/checkout@v1
33-
- name: Show php version
34+
- name: Show PHP version
3435
run: php${{ matrix.php }} -v && composer -V
35-
- name: Debug if needed
36+
- name: Show Docker version
3637
run: if [[ "$DEBUG" == "true" ]]; then docker version && env; fi
3738
env:
3839
DEBUG: ${{secrets.DEBUG}}
39-
- name: Get Composer Cache Directory
40+
- name: Download Composer cache dependencies from cache
4041
id: composer-cache
4142
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
42-
- name: Cache dependencies
43+
- name: Cache Composer dependencies
4344
uses: actions/cache@v1
4445
with:
4546
path: ${{ steps.composer-cache.outputs.dir }}
@@ -48,15 +49,18 @@ jobs:
4849
- name: Install dependencies
4950
run: |
5051
composer install --no-interaction
51-
- name: Generating code coverage
52+
- name: Run tests
5253
run: |
53-
mkdir -p build/logs
54-
./vendor/bin/phpunit --coverage-clover build/logs/clover.xml
54+
./vendor/bin/phpunit --coverage-clover coverage.xml
5555
env:
5656
MONGO_HOST: 0.0.0.0
5757
MYSQL_HOST: 0.0.0.0
5858
MYSQL_PORT: 3307
5959
- name: Send coveralls
60-
run: vendor/bin/php-coveralls -v
60+
run: vendor/bin/coveralls coverage.xml
6161
env:
6262
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
63+
- uses: codecov/codecov-action@v1
64+
with:
65+
token: ${{ secrets.CODECOV_TOKEN }}
66+
fail_ci_if_error: false

.styleci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
preset: laravel

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2020 Jens Segers
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

0 commit comments

Comments
 (0)