Skip to content

Commit dae299e

Browse files
authored
[Feature] Customizable route path, supports for SQLite and some improvements (#3)
* v1.1.1 * v1.1.1 * build sqlite * use normal error
1 parent e0a73c3 commit dae299e

File tree

11 files changed

+130
-8358
lines changed

11 files changed

+130
-8358
lines changed

.github/envs/.env.testing.sqlite

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
DB_CONNECTION=sqlite

.github/workflows/build.yml

+11-3
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
strategy:
1515
fail-fast: false
1616
matrix:
17-
db: ['mysql', 'pgsql']
17+
db: ['mysql', 'pgsql', 'sqlite']
1818
runs-on: ubuntu-latest
1919
services:
2020
postgresql:
@@ -48,19 +48,27 @@ jobs:
4848
run: |
4949
cp .github/envs/.env.testing.pgsql .env.testing
5050
51+
- name: Start SQLite Database
52+
if: matrix.db == 'sqlite'
53+
run: |
54+
cp .github/envs/.env.testing.pgsql .env.testing
55+
touch database.sqlite
56+
DB_DATABASE="$(pwd)/database.sqlite"
57+
echo $DB_DATABASE
58+
5159
- name: Bootstrap project
5260
if: success()
5361
run: |
5462
php -v
5563
composer install --no-interaction
5664
5765
- name: PHPUnit tests with coverage
58-
if: success() && github.event.pull_request.draft == false
66+
if: success()
5967
run: |
6068
composer test-coverage
6169
6270
- name: upload coverage to codecov.io
63-
if: success() && matrix.db == 'mysql'
71+
if: success()
6472
uses: codecov/codecov-action@v3
6573
with:
6674
token: ${{ secrets.CODECOV_TOKEN }}

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ helps you to roll out the inbox process in no time 😎🚀.
3131
## Supports
3232
- Laravel 10 & 11
3333
- PHP 8.2+
34-
- MySQL 8, MariaDB & Postgres 13+
34+
- MySQL 8, MariaDB, Postgres 13+ and SQLite
3535

3636
## Architecture Diagram
3737

composer.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@
2929
},
3030
"require-dev": {
3131
"fakerphp/faker": "^v1.20.0",
32-
"mockery/mockery": "^1.5.1",
32+
"mockery/mockery": "^1.6",
3333
"phpunit/phpunit": "^10",
34-
"orchestra/testbench": "^8",
34+
"orchestra/testbench": "^8|^9",
3535
"phpunit/php-code-coverage": "^10",
3636
"friendsofphp/php-cs-fixer": "^3.10"
3737
},

0 commit comments

Comments
 (0)