fix(tests): freebsd should be red on error #444
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/... |