netbird/.github/workflows/golang-test-freebsd.yml

36 lines
819 B
YAML
Raw Normal View History

2024-06-14 11:17:55 +02:00
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:
2024-07-31 09:58:04 +02:00
runs-on: ubuntu-22.04
2024-06-14 11:17:55 +02:00
steps:
- uses: actions/checkout@v4
- name: Test in FreeBSD
id: test
uses: vmactions/freebsd-vm@v1
with:
usesh: true
2024-07-31 09:58:04 +02:00
copyback: false
release: "14.1"
2024-06-14 11:17:55 +02:00
prepare: |
2024-07-31 09:58:04 +02:00
pkg install -y go
2024-06-14 11:17:55 +02:00
2024-07-31 09:58:04 +02:00
# -x - to print all executed commands
# -e - to faile on first error
2024-06-14 11:17:55 +02:00
run: |
2024-07-31 09:58:04 +02:00
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/...