diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index cee465b..9cf81ee 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -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: