Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:jenssegers/laravel-mongodb
- Loading branch information
Showing
79 changed files
with
3,577 additions
and
1,708 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
indent_style = space | ||
indent_size = 4 | ||
trim_trailing_whitespace = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
github: jenssegers | ||
open_collective: laravel-mongodb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
tags: | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
runs-on: ${{matrix.os}} | ||
strategy: | ||
matrix: | ||
php: ['7.1', '7.2', '7.3', '7.4'] | ||
os: ['ubuntu-latest'] | ||
mongodb: ['3.6', '4.0', '4.2'] | ||
services: | ||
mongo: | ||
image: mongo:${{ matrix.mongodb }} | ||
ports: | ||
- 27017:27017 | ||
mysql: | ||
image: mysql:5.7 | ||
ports: | ||
- 3307:3306 | ||
env: | ||
MYSQL_ALLOW_EMPTY_PASSWORD: 'yes' | ||
MYSQL_DATABASE: 'unittest' | ||
MYSQL_ROOT_PASSWORD: | ||
name: PHP v${{ matrix.php }} with Mongo v${{ matrix.mongodb }} | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Show PHP version | ||
run: php${{ matrix.php }} -v && composer -V | ||
- name: Show Docker version | ||
run: if [[ "$DEBUG" == "true" ]]; then docker version && env; fi | ||
env: | ||
DEBUG: ${{secrets.DEBUG}} | ||
- name: Download Composer cache dependencies from cache | ||
id: composer-cache | ||
run: echo "::set-output name=dir::$(composer config cache-files-dir)" | ||
- name: Cache Composer dependencies | ||
uses: actions/cache@v1 | ||
with: | ||
path: ${{ steps.composer-cache.outputs.dir }} | ||
key: ${{ matrix.os }}-composer-${{ hashFiles('**/composer.json') }} | ||
restore-keys: ${{ matrix.os }}-composer- | ||
- name: Install dependencies | ||
run: | | ||
composer install --no-interaction | ||
- name: Run tests | ||
run: | | ||
./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/coveralls coverage.xml | ||
env: | ||
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- uses: codecov/codecov-action@v1 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
fail_ci_if_error: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,4 @@ composer.lock | |
*.sublime-workspace | ||
*.project | ||
.idea/ | ||
.phpunit.result.cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
preset: laravel |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
ARG PHP_VERSION=7.2 | ||
ARG COMPOSER_VERSION=1.8 | ||
|
||
FROM composer:${COMPOSER_VERSION} | ||
FROM php:${PHP_VERSION}-cli | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y autoconf pkg-config libssl-dev git libzip-dev zlib1g-dev && \ | ||
pecl install mongodb && docker-php-ext-enable mongodb && \ | ||
pecl install xdebug && docker-php-ext-enable xdebug && \ | ||
docker-php-ext-install -j$(nproc) pdo_mysql zip | ||
|
||
COPY --from=composer /usr/bin/composer /usr/local/bin/composer | ||
|
||
WORKDIR /code |
Oops, something went wrong.