Skip to content

Commit

Permalink
chore: support e2e tests on openbsd
Browse files Browse the repository at this point in the history
Signed-off-by: Pranshu Srivastava <[email protected]>
  • Loading branch information
rexagod committed Nov 23, 2024
1 parent be9a884 commit e937bdc
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions .github/workflows/bsd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ permissions:

env:
GO_VERSION_FREEBSD: "123"
GO_VERSION_OPENBSD: "-1.23"
GO_VERSION_OPENBSD: "1.23.1"
GNU_GREP_VERSION: "3.11"
GNU_TAR_VERSION: "1.35"

jobs:
test:
Expand All @@ -32,17 +33,19 @@ jobs:
usesh: true
prepare: |
pkg update -f
pkg install -y bash curl git gmake gsed grep go${GO_VERSION} python
pkg install -y bash curl gtar-${GNU_TAR_VERSION}p0-static git gmake gsed ggrep go-${GO_VERSION_FREEBSD} python
run: |
set -eux
mkdir bin
ln -s $(which go${GO_VERSION_FREEBSD}) bin/go
ln -s $(which gsed) bin/sed
ln -s $(which go-${GO_VERSION_FREEBSD}) bin/go
ln -s $(which ggrep) bin/grep
ln -s $(which gmake) bin/make
ln -s $(which gsed) bin/sed
ln -s $(which gtar) bin/tar
export PATH=$(pwd)/bin:$PATH
echo "::group::Print environment information"
openbsd-version
freebsd-version
uname -a
echo "GOOS: $(go env GOOS)"
echo "GOARCH: $(go env GOARCH)"
Expand All @@ -60,31 +63,28 @@ jobs:
usesh: true
prepare: |
pkg_add -u
pkg_info -Q go
pkg_info go
pkg_info -Q grep
pkg_info grep
pkg_info -Q tar
pkg_info tar
pkg_add bash curl tar git gmake gsed grep go${GO_VERSION_OPENBSD} python
pkg_add bash curl gtar-${GNU_TAR_VERSION}p0-static git gmake gsed ggrep go-${GO_VERSION_OPENBSD} python
run: |
set -eux
mkdir bin
ln -s $(which go${GO_VERSION}) bin/go
ln -s $(which go-${GO_VERSION_OPENBSD}) bin/go
ln -s $(which gsed) bin/sed
ln -s $(which ggrep) bin/grep
ln -s $(which gmake) bin/make
ln -s $(which gtar) bin/tar
# ln -s $(which go-${GO_VERSION_OPENBSD}) bin/go
export PATH=$(pwd)/bin:$PATH
echo "::group::Print environment information"
freebsd-version
openbsd-version
uname -a
echo "GOOS: $(go env GOOS)"
echo "GOARCH: $(go env GOARCH)"
echo "::endgroup::"
echo "::group::Run End-to-End Tests"
git config --global --add safe.directory $(pwd)
gmake test-e2e
make test-e2e
echo "::endgroup::"
- name: Run end-to-end tests on NetBSD
Expand Down

0 comments on commit e937bdc

Please sign in to comment.