Skip to content

Commit

Permalink
chore: add BSD pipeline
Browse files Browse the repository at this point in the history
For integration tests.

Fixes prometheus#2883.

Signed-off-by: Pranshu Srivastava <[email protected]>
  • Loading branch information
rexagod committed Oct 19, 2024
1 parent e6a9cfb commit 2504cdd
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/freebsd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
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}
run: | # The steps below are executed on the FreeBSD VM.
set -eu
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::"

0 comments on commit 2504cdd

Please sign in to comment.