Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,3 +94,35 @@ jobs:
- name: Test
if: runner.os == 'Windows'
run: .ci/scripts/test.bat

test-freebsd:
runs-on: ubuntu-latest
env:
# Only GITHUB_* are passed into the VM.
GITHUB_GOLANG_VERSION: 1.22.1
name: test (1.22.1, freebsd-14.0, cgo)
steps:
- uses: actions/checkout@v4

- name: Test
# TODO: Skip until freebsd provider is merged. Then this 'if' should be removed.
if: ${{ hashFiles('providers/freebsd/') != '' }}
id: test
uses: vmactions/freebsd-vm@35a5b20a98476a681c7576a344775be7e7f77f06 #v1.0.6
with:
usesh: true
prepare: |
freebsd-version
pwd
ls -lah
whoami

Comment on lines +115 to +119
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

required?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Required, no. But I didn't see any downside to not having it. There's already a ton of logging happening with the freebsd plugin so this is like a drop in the bucket.

pkg install -y curl
curl -sL -o /usr/bin/gvm https://github.com/andrewkroh/gvm/releases/download/v0.5.2/gvm-freebsd-amd64
chmod +x /usr/bin/gvm
eval "$(gvm ${GITHUB_GOLANG_VERSION})"
go version

run: |
eval "$(gvm ${GITHUB_GOLANG_VERSION})"
go test -v ./...