From 99701d1f198d190449cbe0d6d0b35274cbcebe3c Mon Sep 17 00:00:00 2001 From: Pranshu Srivastava Date: Sun, 20 Oct 2024 00:04:34 +0530 Subject: [PATCH] chore: add BSD pipeline For integration tests. Fixes #2883. Signed-off-by: Pranshu Srivastava --- .github/workflows/freebsd.yml | 48 +++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 .github/workflows/freebsd.yml diff --git a/.github/workflows/freebsd.yml b/.github/workflows/freebsd.yml new file mode 100644 index 0000000000..c60df364df --- /dev/null +++ b/.github/workflows/freebsd.yml @@ -0,0 +1,48 @@ +name: freebsd-vm + +on: + push: + branches: + - master + pull_request: + branches: + - master + +permissions: + contents: read + +env: + GO_VERSION: "123" + +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' + usesh: true + prepare: | + pkg update -f + pkg install -y bash curl git gmake go${GO_VERSION} + git config --global --add safe.directory $(pwd)/node_exporter + run: | # The steps below are executed on the FreeBSD VM. + set -eux + ln -s $(which go${GO_VERSION}) go + export PATH=$PATH:. + + echo "::group::Print environment information" + freebsd-version + uname -a + echo "GOOS: $(go env GOOS)" + echo "GOARCH: $(go env GOARCH)" + echo "::endgroup::" + + echo "::group::Run End-to-End Tests" + gmake test-e2e + echo "::endgroup::"