diff --git a/.github/workflows/_test.yml b/.github/workflows/_test.yml index a638219bfd..8a2f0f3da0 100644 --- a/.github/workflows/_test.yml +++ b/.github/workflows/_test.yml @@ -94,3 +94,36 @@ jobs: CGO_ENABLED: 1 # go test -race requires cgo - run: go build -tags osusergo,netgo -ldflags="-s -w -X main.version=$(git describe --tags) -X main.date=$(date --iso-8601=seconds)" + + # Please note BSD support is offered on a best-effort basis, this check is not blocking but for us to be aware of issues. + test-bsd: + runs-on: ubuntu-latest + strategy: + matrix: + os: + - name: openbsd + architecture: x86-64 + version: '7.5' + + - name: openbsd + architecture: arm64 + version: '7.5' + steps: + - uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2 + + - name: Test on ${{ matrix.os.name }} + uses: cross-platform-actions/action@b2e15da1e667187766fff4945d20b98ac7055576 # v0.24.0 + env: + GO_VERSION: 1.22.1 + with: + environment_variables: GO_VERSION + operating_system: ${{ matrix.os.name }} + architecture: ${{ matrix.os.architecture }} + version: ${{ matrix.os.version }} + shell: bash + memory: 1G + cpu_count: 1 + run: | + sudo pkg_add -u + sudo pkg_add gmake go%${GO_VERSION} + gmake unittest GO_TEST_FLAGS="-tags test_sqlite_only"