Skip to content

Commit

Permalink
Merge pull request #76 from kiwilan/develop
Browse files Browse the repository at this point in the history
v3.0.0
  • Loading branch information
ewilan-riviere authored Jul 22, 2024
2 parents 44c8b38 + 29f456f commit aef437d
Show file tree
Hide file tree
Showing 126 changed files with 6,935 additions and 2,455 deletions.
16 changes: 14 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
DB_CONNECTION=sqlite # mysql, sqlite, pgsql, sqlsrv
DB_CONNECTION=sqlite # mysql, mariadb, sqlite, pgsql, sqlsrv

DB_MYSQL_HOST=127.0.0.1
DB_MYSQL_PORT=3306
DB_MYSQL_USER=testing
DB_MYSQL_PASSWORD=testing
DB_MYSQL_DATABASE=testing

DB_MARIADB_HOST=127.0.0.1
DB_MARIADB_PORT=3307
DB_MARIADB_USER=testing
DB_MARIADB_PASSWORD=testing
DB_MARIADB_DATABASE=testing

DB_SQLITE_HOST=
DB_SQLITE_PORT=
DB_SQLITE_USER=
Expand All @@ -24,5 +30,11 @@ DB_SQLSRV_USER=sa
DB_SQLSRV_PASSWORD=12345OHdf%e
DB_SQLSRV_DATABASE=testing

DB_MONGODB_HOST=127.0.0.1
DB_MONGODB_PORT=27017
DB_MONGODB_USER=testing
DB_MONGODB_PASSWORD=testing
DB_MONGODB_DATABASE=testing

DB_PREFIX=ts_
DATABASE_TYPES=mysql,sqlite,pgsql,sqlsrv # mysql,sqlite,pgsql,sqlsrv
DATABASE_TYPES=mysql,mariadb,sqlite,pgsql,sqlsrv # mysql,mariadb,sqlite,pgsql,sqlsrv
1 change: 1 addition & 0 deletions .github/workflows/dependabot-auto-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
steps:
- name: Dependabot metadata
id: metadata
# https://github.com/dependabot/fetch-metadata
uses: dependabot/[email protected]
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/fix-php-code-style-issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,17 @@ jobs:

steps:
- name: Checkout code
# https://github.com/actions/checkout
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}

- name: Fix PHP code style issues
uses: aglipanci/[email protected]
# https://github.com/aglipanci/laravel-pint-action
uses: aglipanci/[email protected]

- name: Commit changes
# https://github.com/stefanzweifel/git-auto-commit-action
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Fix styling
3 changes: 3 additions & 0 deletions .github/workflows/phpstan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,18 @@ jobs:
name: phpstan
runs-on: ubuntu-latest
steps:
# https://github.com/actions/checkout
- uses: actions/checkout@v4

- name: Setup PHP
# https://github.com/shivammathur/setup-php
uses: shivammathur/setup-php@v2
with:
php-version: "8.2"
coverage: none

- name: Install composer dependencies
# https://github.com/ramsey/composer-install
uses: ramsey/composer-install@v3

- name: Run PHPStan
Expand Down
24 changes: 23 additions & 1 deletion .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,18 @@ jobs:
ports:
- 3306:3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
mariadb:
image: mariadb:11.4
ports:
- 3307:3306
options: --health-cmd="healthcheck.sh --connect --innodb_initialized" --health-interval=10s --health-timeout=5s --health-retries=3
env:
MARIADB_ROOT_PASSWORD: root
MARIADB_DATABASE: testing
MARIADB_USER: testing
MARIADB_PASSWORD: testing
pgsql:
image: postgres:13
image: postgres:16.3
env:
POSTGRES_USER: testing
POSTGRES_PASSWORD: testing
Expand All @@ -39,11 +49,20 @@ jobs:
MSSQL_SA_PASSWORD: 12345OHdf%e
ports:
- 1433:1433
mongodb:
image: mongo:7.0.12
env:
MONGO_INITDB_ROOT_USERNAME: testing
MONGO_INITDB_ROOT_PASSWORD: testing
MONGO_INITDB_DATABASE: admin
ports:
- 27017:27017

name: P${{ matrix.php }} - ${{ matrix.stability }} - ${{ matrix.os }}

steps:
- name: Checkout code
# https://github.com/actions/checkout
uses: actions/checkout@v4

- name: Verify MySQL connection from host
Expand All @@ -52,6 +71,7 @@ jobs:
mysql --host 127.0.0.1 --port 3306 -uroot -proot -e "SHOW DATABASES"
- name: Setup PHP
# https://github.com/shivammathur/setup-php
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
Expand All @@ -70,6 +90,7 @@ jobs:
run: cp .env.example .env

- name: Setup node
# https://github.com/actions/setup-node
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
Expand All @@ -84,6 +105,7 @@ jobs:
run: vendor/bin/pest --coverage

- name: Send code coverage
# https://github.com/codecov/codecov-action
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/update-changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,20 @@ jobs:

steps:
- name: Checkout code
# https://github.com/actions/checkout
uses: actions/checkout@v4
with:
ref: main

- name: Update Changelog
# https://github.com/stefanzweifel/changelog-updater-action
uses: stefanzweifel/changelog-updater-action@v1
with:
latest-version: ${{ github.event.release.name }}
release-notes: ${{ github.event.release.body }}

- name: Commit updated CHANGELOG
# https://github.com/stefanzweifel/git-auto-commit-action
uses: stefanzweifel/git-auto-commit-action@v5
with:
branch: main
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ plugin/types
*.tgz
CHANGELOG-draft.md
.phpunit.cache
tests/EloquentLegacy
Loading

0 comments on commit aef437d

Please sign in to comment.