netbird/.github/workflows/golang-test-freebsd.yml
2024-07-31 09:58:04 +02:00

36 lines
819 B
YAML

name: Test Code FreeBSD
on:
push:
branches:
- main
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref || github.actor_id }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Test in FreeBSD
id: test
uses: vmactions/freebsd-vm@v1
with:
usesh: true
copyback: false
release: "14.1"
prepare: |
pkg install -y go
# -x - to print all executed commands
# -e - to faile on first error
run: |
set -e -x
go build -o netbird client/main.go
go test -timeout 5m -p 1 -failfast ./iface/...
go test -timeout 5m -p 1 -failfast ./client/...