diff --git a/.github/workflows/freebsd.yml b/.github/workflows/freebsd.yml new file mode 100644 index 0000000000..59939c15b1 --- /dev/null +++ b/.github/workflows/freebsd.yml @@ -0,0 +1,51 @@ +name: freebsd-vm + +on: + push: + branches: + - master + pull_request: + branches: + - master + +permissions: + contents: read + +env: + GO_VERSION: "123" + PROMU_VERSION: "v0.17.0" + +jobs: + test: + name: e2e-tests + 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 PROMU_VERSION' + usesh: true + prepare: | + pkg update -f + pkg install -y bash curl go${GO_VERSION} + run: | # The steps below are executed on the FreeBSD VM. + set -exu + ln -s $(which go${GO_VERSION}) 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::Run End-to-End Tests" + make test-e2e + echo "::endgroup::"