Skip to content

Commit

Permalink
build sqlite
Browse files Browse the repository at this point in the history
  • Loading branch information
sethsandaru committed May 12, 2024
1 parent 36a8896 commit 0847412
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 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

0 comments on commit 0847412

Please sign in to comment.