Skip to content

Commit

Permalink
[Feature] Customizable route path, supports for SQLite and some impro…
Browse files Browse the repository at this point in the history
…vements (#3)

* v1.1.1

* v1.1.1

* build sqlite

* use normal error
  • Loading branch information
sethsandaru committed May 12, 2024
1 parent e0a73c3 commit dae299e
Show file tree
Hide file tree
Showing 11 changed files with 130 additions and 8,358 deletions.
1 change: 1 addition & 0 deletions .github/envs/.env.testing.sqlite
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DB_CONNECTION=sqlite
14 changes: 11 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
strategy:
fail-fast: false
matrix:
db: ['mysql', 'pgsql']
db: ['mysql', 'pgsql', 'sqlite']
runs-on: ubuntu-latest
services:
postgresql:
Expand Down Expand Up @@ -48,19 +48,27 @@ jobs:
run: |
cp .github/envs/.env.testing.pgsql .env.testing
- name: Start SQLite Database
if: matrix.db == 'sqlite'
run: |
cp .github/envs/.env.testing.pgsql .env.testing
touch database.sqlite
DB_DATABASE="$(pwd)/database.sqlite"
echo $DB_DATABASE
- name: Bootstrap project
if: success()
run: |
php -v
composer install --no-interaction
- name: PHPUnit tests with coverage
if: success() && github.event.pull_request.draft == false
if: success()
run: |
composer test-coverage
- name: upload coverage to codecov.io
if: success() && matrix.db == 'mysql'
if: success()
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ helps you to roll out the inbox process in no time 😎🚀.
## Supports
- Laravel 10 & 11
- PHP 8.2+
- MySQL 8, MariaDB & Postgres 13+
- MySQL 8, MariaDB, Postgres 13+ and SQLite

## Architecture Diagram

Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@
},
"require-dev": {
"fakerphp/faker": "^v1.20.0",
"mockery/mockery": "^1.5.1",
"mockery/mockery": "^1.6",
"phpunit/phpunit": "^10",
"orchestra/testbench": "^8",
"orchestra/testbench": "^8|^9",
"phpunit/php-code-coverage": "^10",
"friendsofphp/php-cs-fixer": "^3.10"
},
Expand Down
Loading

0 comments on commit dae299e

Please sign in to comment.