Skip to content

Commit 728e599

Browse files
committed
Test BSD.
1 parent f7b16ba commit 728e599

File tree

1 file changed

+17
-5
lines changed

1 file changed

+17
-5
lines changed

.github/workflows/go.yml

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,22 +39,34 @@ jobs:
3939

4040
- name: Vet
4141
run: go vet ./...
42-
continue-on-error: true
4342

4443
- name: Build
4544
run: go build -v ./...
4645

4746
- name: Test
4847
run: go test -v ./...
4948

50-
- name: Test no locks
51-
run: go test -v -tags sqlite3_nolock .
52-
if: matrix.os == 'ubuntu-latest'
53-
5449
- name: Test BSD locks
5550
run: go test -v -tags sqlite3_flock ./...
5651
if: matrix.os == 'macos-latest'
5752

53+
- name: Build FreeBSD tests
54+
run: GOOS=freebsd go test -c ./...
55+
if: matrix.os == 'macos-latest'
56+
57+
- name: Run FreeBSD tests in a xHyve VM
58+
uses: cross-platform-actions/action@master
59+
with:
60+
operating_system: freebsd
61+
version: '13.2'
62+
run: |
63+
find . -name '*.test' -maxdepth 1 -exec {} -test.v \;
64+
if: matrix.os == 'macos-latest'
65+
66+
- name: Test no locks
67+
run: go test -v -tags sqlite3_nolock .
68+
if: matrix.os == 'ubuntu-latest'
69+
5870
- name: Coverage report
5971
uses: ncruces/go-coverage-report@v0
6072
with:

0 commit comments

Comments
 (0)