mirror of
https://github.com/gogs/gogs.git
synced 2026-05-07 21:47:29 +02:00
db: run tests with pure-Go SQLite (#6998)
This commit is contained in:
19
.github/workflows/go.yml
vendored
19
.github/workflows/go.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user