Skip to content

Commit 1ffc7a2

Browse files
authored
Merge branch 'pr_1491' into pr/17
2 parents 929120f + 4d81b40 commit 1ffc7a2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+2375
-1532
lines changed

.codacy.yml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
exclude_paths:
2+
- '.github/**'

.editorconfig

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
insert_final_newline = true
7+
indent_style = space
8+
indent_size = 4
9+
trim_trailing_whitespace = true

.github/FUNDING.yml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
github: jenssegers
2+
open_collective: laravel-mongodb

.github/ISSUE_TEMPLATE/BUG_REPORT.md

+25
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>
+18
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

+8
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

+66
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
tags:
7+
pull_request:
8+
9+
jobs:
10+
build:
11+
runs-on: ${{matrix.os}}
12+
strategy:
13+
matrix:
14+
php: ['7.1', '7.2', '7.3', '7.4']
15+
os: ['ubuntu-latest']
16+
mongodb: ['3.6', '4.0', '4.2']
17+
services:
18+
mongo:
19+
image: mongo:${{ matrix.mongodb }}
20+
ports:
21+
- 27017:27017
22+
mysql:
23+
image: mysql:5.7
24+
ports:
25+
- 3307:3306
26+
env:
27+
MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
28+
MYSQL_DATABASE: 'unittest'
29+
MYSQL_ROOT_PASSWORD:
30+
name: PHP v${{ matrix.php }} with Mongo v${{ matrix.mongodb }}
31+
32+
steps:
33+
- uses: actions/checkout@v1
34+
- name: Show PHP version
35+
run: php${{ matrix.php }} -v && composer -V
36+
- name: Show Docker version
37+
run: if [[ "$DEBUG" == "true" ]]; then docker version && env; fi
38+
env:
39+
DEBUG: ${{secrets.DEBUG}}
40+
- name: Download Composer cache dependencies from cache
41+
id: composer-cache
42+
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
43+
- name: Cache Composer dependencies
44+
uses: actions/cache@v1
45+
with:
46+
path: ${{ steps.composer-cache.outputs.dir }}
47+
key: ${{ matrix.os }}-composer-${{ hashFiles('**/composer.json') }}
48+
restore-keys: ${{ matrix.os }}-composer-
49+
- name: Install dependencies
50+
run: |
51+
composer install --no-interaction
52+
- name: Run tests
53+
run: |
54+
./vendor/bin/phpunit --coverage-clover coverage.xml
55+
env:
56+
MONGO_HOST: 0.0.0.0
57+
MYSQL_HOST: 0.0.0.0
58+
MYSQL_PORT: 3307
59+
- name: Send coveralls
60+
run: vendor/bin/coveralls coverage.xml
61+
env:
62+
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

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ composer.lock
77
*.sublime-workspace
88
*.project
99
.idea/
10+
.phpunit.result.cache

.styleci.yml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
preset: laravel

.travis.yml

-32
This file was deleted.

Dockerfile

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
ARG PHP_VERSION=7.2
2+
ARG COMPOSER_VERSION=1.8
3+
4+
FROM composer:${COMPOSER_VERSION}
5+
FROM php:${PHP_VERSION}-cli
6+
7+
RUN apt-get update && \
8+
apt-get install -y autoconf pkg-config libssl-dev git libzip-dev zlib1g-dev && \
9+
pecl install mongodb && docker-php-ext-enable mongodb && \
10+
pecl install xdebug && docker-php-ext-enable xdebug && \
11+
docker-php-ext-install -j$(nproc) pdo_mysql zip
12+
13+
COPY --from=composer /usr/bin/composer /usr/local/bin/composer
14+
15+
WORKDIR /code

0 commit comments

Comments
 (0)