mirror of
https://github.com/netbirdio/netbird.git
synced 2024-11-28 19:13:31 +01:00
36 lines
819 B
YAML
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/...
|