Test BSD.

This commit is contained in:
Nuno Cruces
2023-10-16 12:31:53 +01:00
parent f7b16bad5c
commit 728e59951b

View File

@@ -39,7 +39,6 @@ jobs:
- name: Vet
run: go vet ./...
continue-on-error: true
- name: Build
run: go build -v ./...
@@ -47,14 +46,27 @@ jobs:
- name: Test
run: go test -v ./...
- name: Test no locks
run: go test -v -tags sqlite3_nolock .
if: matrix.os == 'ubuntu-latest'
- name: Test BSD locks
run: go test -v -tags sqlite3_flock ./...
if: matrix.os == 'macos-latest'
- name: Build FreeBSD tests
run: GOOS=freebsd go test -c ./...
if: matrix.os == 'macos-latest'
- name: Run FreeBSD tests in a xHyve VM
uses: cross-platform-actions/action@master
with:
operating_system: freebsd
version: '13.2'
run: |
find . -name '*.test' -maxdepth 1 -exec {} -test.v \;
if: matrix.os == 'macos-latest'
- name: Test no locks
run: go test -v -tags sqlite3_nolock .
if: matrix.os == 'ubuntu-latest'
- name: Coverage report
uses: ncruces/go-coverage-report@v0
with: