diff options
author | Joe Chen <jc@unknwon.io> | 2022-06-03 10:03:48 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-03 10:03:48 +0800 |
commit | ccdcb1c45bdc3b85d5e6dcc7b96e9670281a83ac (patch) | |
tree | 70640681a9ed12e0aed65be7597eac16d90d8fb6 /.github/workflows | |
parent | 5f34265db6548e3be72b865e41f227137b18474c (diff) |
db: run tests with pure-Go SQLite (#6998)
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/go.yml | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index c123d86d..49282e55 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -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 |