Skip to content

Commit 2f6690d

Browse files
committed
ci: add SQLite testing to GitHub Actions matrix
- Add sqlite to database matrix for comprehensive testing - Add SQLite test step using npm run test:sqlite command - Configure SQLite environment with file-based database path - Update both push and release workflows for complete database coverage
1 parent fe89992 commit 2f6690d

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

.github/workflows/test-on-push.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
strategy:
1212
matrix:
13-
database: [postgres, mysql]
13+
database: [postgres, mysql, sqlite]
1414
services:
1515
postgres:
1616
image: postgres:latest
@@ -70,3 +70,9 @@ jobs:
7070
MYSQL_TEST_DB_NAME: sqlkit_test
7171
MYSQL_TEST_DB_USER: root
7272
MYSQL_TEST_DB_PASSWORD: password
73+
74+
- name: Run SQLite tests
75+
if: matrix.database == 'sqlite'
76+
run: npm run test:sqlite
77+
env:
78+
SQLITE_TEST_DB_PATH: ./test.db

.github/workflows/test-on-release.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: ubuntu-latest
1010
strategy:
1111
matrix:
12-
database: [postgres, mysql]
12+
database: [postgres, mysql, sqlite]
1313
services:
1414
postgres:
1515
image: postgres:latest
@@ -69,3 +69,9 @@ jobs:
6969
MYSQL_TEST_DB_NAME: sqlkit_test
7070
MYSQL_TEST_DB_USER: root
7171
MYSQL_TEST_DB_PASSWORD: password
72+
73+
- name: Run SQLite tests
74+
if: matrix.database == 'sqlite'
75+
run: npm run test:sqlite
76+
env:
77+
SQLITE_TEST_DB_PATH: ./test.db

0 commit comments

Comments
 (0)