-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
985b5de
commit 3268a45
Showing
41 changed files
with
1,874 additions
and
484 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,5 @@ | ||
DB_DRIVER=Mysql | ||
DB_USER=root | ||
DB_PWD=root | ||
DB_HOST=localhost | ||
DB_DATABASE=test_suite_light |
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,5 @@ | ||
DB_DRIVER=Postgres | ||
DB_USER=root | ||
DB_PWD=root | ||
DB_HOST=localhost | ||
DB_DATABASE=test_suite_light |
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,5 @@ | ||
DB_DRIVER=Sqlite | ||
DB_USER=root | ||
DB_PWD=root | ||
DB_HOST=localhost | ||
DB_DATABASE=test_suite_light |
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 |
---|---|---|
@@ -1,70 +1,70 @@ | ||
name: GitHub CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- '*' | ||
pull_request: | ||
branches: | ||
- '*' | ||
schedule: | ||
- cron: '0 0 * * 0' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
php-version: ['7.0', '7.2'] | ||
db-type: [sqlite, mysql, pgsql] | ||
composer-type: [lowest, stable, dev] | ||
exclude: | ||
- php-version: '7.0' | ||
db-type: sqlite | ||
|
||
name: PHP ${{ matrix.php-version }} & ${{ matrix.db-type }} & ${{ matrix.composer-type }} | ||
|
||
services: | ||
postgres: | ||
image: postgres | ||
ports: | ||
- 5432:5432 | ||
env: | ||
POSTGRES_DB: test_suite_light | ||
POSTGRES_PASSWORD: root | ||
POSTGRES_USER: root | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php-version }} | ||
extensions: mbstring, intl, apcu, pdo_${{ matrix.db-type }} | ||
ini-values: apc.enable_cli = 1 | ||
|
||
- name: Update composer | ||
run: composer self-update | ||
|
||
- name: Validate composer.json | ||
run: composer validate | ||
|
||
- name: Install dependencies | ||
run: | | ||
if [[ ${{ matrix.composer-type }} == 'lowest' ]]; then | ||
composer update --prefer-dist --no-progress --no-suggest --prefer-stable --prefer-lowest | ||
elif [[ ${{ matrix.composer-type }} == 'stable' ]]; then | ||
composer update --prefer-dist --no-progress --no-suggest --prefer-stable | ||
else | ||
composer update --prefer-dist --no-progress --no-suggest | ||
fi | ||
- name: Run tests | ||
run: | | ||
if [ ${{ matrix.db-type }} == 'mysql' ]; then | ||
sudo service mysql start && mysql -h 127.0.0.1 -u root -proot -e 'CREATE DATABASE IF NOT EXISTS test_suite_light;'; | ||
fi | ||
composer run-tests-${{ matrix.db-type }} root root | ||
name: GitHub CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- '*' | ||
pull_request: | ||
branches: | ||
- '*' | ||
schedule: | ||
- cron: '0 0 * * 0' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
php-version: ['7.0', '7.2'] | ||
db-type: [sqlite, mysql, pgsql] | ||
composer-type: [lowest, stable, dev] | ||
exclude: | ||
- php-version: '7.0' | ||
db-type: sqlite | ||
|
||
name: PHP ${{ matrix.php-version }} & ${{ matrix.db-type }} & ${{ matrix.composer-type }} | ||
|
||
services: | ||
postgres: | ||
image: postgres | ||
ports: | ||
- 5432:5432 | ||
env: | ||
POSTGRES_DB: test_suite_light | ||
POSTGRES_PASSWORD: root | ||
POSTGRES_USER: root | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php-version }} | ||
extensions: mbstring, intl, apcu, pdo_${{ matrix.db-type }} | ||
ini-values: apc.enable_cli = 1 | ||
|
||
- name: Update composer | ||
run: composer self-update | ||
|
||
- name: Validate composer.json | ||
run: composer validate | ||
|
||
- name: Install dependencies | ||
run: | | ||
if [[ ${{ matrix.composer-type }} == 'lowest' ]]; then | ||
composer update --prefer-dist --no-progress --no-suggest --prefer-stable --prefer-lowest | ||
elif [[ ${{ matrix.composer-type }} == 'stable' ]]; then | ||
composer update --prefer-dist --no-progress --no-suggest --prefer-stable | ||
else | ||
composer update --prefer-dist --no-progress --no-suggest | ||
fi | ||
- name: Run tests | ||
run: | | ||
if [ ${{ matrix.db-type }} == 'mysql' ]; then | ||
sudo service mysql start && mysql -h 127.0.0.1 -u root -proot -e 'CREATE DATABASE IF NOT EXISTS test_suite_light;'; | ||
fi | ||
composer run-tests-${{ matrix.db-type }} |
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 |
---|---|---|
|
@@ -5,3 +5,4 @@ dummy_database | |
composer.lock | ||
/.phpunit.result.cache | ||
/tmp/ | ||
.env |
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
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
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
Oops, something went wrong.