chore: add xBSD pipelines #12
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: FreeBSD CI | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
permissions: | |
contents: read | |
env: | |
GO_VERSION: "1.23.2" | |
jobs: | |
test: | |
name: Integration | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the repository | |
uses: actions/checkout@v4 | |
- name: Setup FreeBSD | |
uses: vmactions/freebsd-vm@v1 | |
with: | |
envs: 'GO_VERSION' | |
usesh: true | |
prepare: | | |
pkg update -f | |
pkg install -y go122 | |
run: | # The steps below are executed on the FreeBSD VM. | |
set -exu | |
ln -s $(which go122) go | |
export PATH=$PATH:. | |
echo "::group::FreeBSD Version and System Information" | |
freebsd-version | |
uname -a | |
echo "::endgroup::" | |
echo "::group::Go Environment Information" | |
echo "GOOS: $(go env GOOS)" | |
echo "GOARCH: $(go env GOARCH)" | |
echo "::endgroup::" | |
echo "::group::Build Go Project" | |
go build ./... | |
echo "::endgroup::" | |
echo "::group::Run End-to-End Tests" | |
./end-to-end-test.sh | |
echo "::endgroup::" |