db: run tests with pure-Go SQLite (#6998)

This commit is contained in:
Joe Chen
2022-06-03 10:03:48 +08:00
committed by GitHub
parent 5f34265db6
commit ccdcb1c45b
5 changed files with 90 additions and 1 deletions

View File

@@ -149,3 +149,22 @@ jobs:
MYSQL_PASSWORD: root
MYSQL_HOST: localhost
MYSQL_PORT: 3306
sqlite-go:
name: SQLite (Go)
strategy:
matrix:
go-version: [ 1.16.x, 1.17.x, 1.18.x ]
platform: [ ubuntu-latest ]
runs-on: ${{ matrix.platform }}
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v2
- name: Run tests with coverage
run: go test -v -race -parallel=1 -coverprofile=coverage -covermode=atomic ./internal/db
env:
GOGS_DATABASE_TYPE: sqlite