From 08474123fcd643889599e4a391cad0bc45dfe1b6 Mon Sep 17 00:00:00 2001 From: Seth Phat Date: Sun, 12 May 2024 11:04:20 +0700 Subject: [PATCH] build sqlite --- .github/envs/.env.testing.sqlite | 1 + .github/workflows/build.yml | 14 +++++++++++--- README.md | 2 +- 3 files changed, 13 insertions(+), 4 deletions(-) create mode 100644 .github/envs/.env.testing.sqlite diff --git a/.github/envs/.env.testing.sqlite b/.github/envs/.env.testing.sqlite new file mode 100644 index 0000000..a8cf6bf --- /dev/null +++ b/.github/envs/.env.testing.sqlite @@ -0,0 +1 @@ +DB_CONNECTION=sqlite diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7f0fb5a..df65044 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -14,7 +14,7 @@ jobs: strategy: fail-fast: false matrix: - db: ['mysql', 'pgsql'] + db: ['mysql', 'pgsql', 'sqlite'] runs-on: ubuntu-latest services: postgresql: @@ -48,6 +48,14 @@ 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: | @@ -55,12 +63,12 @@ jobs: 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 }} diff --git a/README.md b/README.md index c1278a5..de67cdf 100644 --- a/README.md +++ b/README.md @@ -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