Skip to content

Commit

Permalink
chore: drop support for e2e tests on solaris
Browse files Browse the repository at this point in the history
Signed-off-by: Pranshu Srivastava <[email protected]>
  • Loading branch information
rexagod committed Nov 24, 2024
1 parent ada788f commit 0e6fdad
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 69 deletions.
119 changes: 50 additions & 69 deletions .github/workflows/bsd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,53 +16,57 @@ env:
GO_VERSION_OPENBSD: "1.23.1"
GO_VERSION_NETBSD: "123"
GO_VERSION_DRAGONFLY: "1.23.3"
GO_VERSION_SOLARIS: "1.23.3"
GNU_TAR_VERSION: "1.35"

# See https://github.com/vmactions's "debug shell" section to debug the VMs below.
jobs:
test:
name: e2e-tests
checkout:
name: Checkout the repository
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v4

- name: Run end-to-end tests on FreeBSD
test_freebsd:
name: Run end-to-end tests on FreeBSD
runs-on: ubuntu-latest
needs: checkout
steps:
- name: test-e2e
uses: vmactions/freebsd-vm@v1
if: false # this already passes, so skip to test other BSDs faster
with:
copyback: false
envs: 'GO_VERSION_FREEBSD GNU_TAR_VERSION'
usesh: true
prepare: |
pkg update -f
pkg install -y bash curl gtar-${GNU_TAR_VERSION}p0-static git gmake gsed ggrep go${GO_VERSION_FREEBSD} python
run: |
pkg install -y bash curl gtar git gmake gsed gnugrep go${GO_VERSION_FREEBSD} python
run: |
set -eux
mkdir bin
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
ln -s $(which go${GO_VERSION_FREEBSD}) $(pwd)/bin/go
ln -s $(which ggrep) $(pwd)/bin/grep
ln -s $(which gmake) $(pwd)/bin/make
ln -s $(which gsed) $(pwd)/bin/sed
ln -s $(which gtar) $(pwd)/bin/tar
export PATH=$(pwd)/bin:$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"
git config --global --add safe.directory $(pwd)
gmake test-e2e
echo "::endgroup::"
- name: Run end-to-end tests on OpenBSD
test_openbsd:
name: Run end-to-end tests on OpenBSD
runs-on: ubuntu-latest
needs: checkout
steps:
- name: test-e2e
uses: vmactions/openbsd-vm@v1
if: false
with:
copyback: false
envs: 'GO_VERSION_OPENBSD GNU_TAR_VERSION'
Expand All @@ -73,25 +77,29 @@ jobs:
run: |
set -eux
mkdir bin
ln -s $(which ggrep) bin/grep
ln -s $(which gmake) bin/make
ln -s $(which gsed) bin/sed
ln -s $(which gtar) bin/tar
ln -s $(which ggrep) $(pwd)/bin/grep
ln -s $(which gmake) $(pwd)/bin/make
ln -s $(which gsed) $(pwd)/bin/sed
ln -s $(which gtar) $(pwd)/bin/tar
export PATH=$(pwd)/bin:$PATH
echo "::group::Print environment information"
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)
make test-e2e
echo "::endgroup::"
- name: Run end-to-end tests on NetBSD
test_netbsd:
name: Run end-to-end tests on NetBSD
runs-on: ubuntu-latest
needs: checkout
steps:
- name: test-e2e
uses: vmactions/netbsd-vm@v1
if: false
with:
copyback: false
envs: 'GO_VERSION_NETBSD GNU_TAR_VERSION'
Expand All @@ -102,34 +110,38 @@ jobs:
run: |
set -eux
mkdir bin
ln -s $(which go${GO_VERSION_NETBSD}) 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
ln -s $(which go${GO_VERSION_NETBSD}) $(pwd)/bin/go
ln -s $(which ggrep) $(pwd)/bin/grep
ln -s $(which gmake) $(pwd)/bin/make
ln -s $(which gsed) $(pwd)/bin/sed
ln -s $(which gtar) $(pwd)/bin/tar
export PATH=$(pwd)/bin:$PATH
echo "::group::Print environment information"
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)
make test-e2e
echo "::endgroup::"
- name: Run end-to-end tests on DragonFly
test_dragonfly:
name: Run end-to-end tests on DragonFly
runs-on: ubuntu-latest
needs: checkout
steps:
- name: test-e2e
uses: vmactions/dragonflybsd-vm@v1
if: false
with:
copyback: false
envs: 'GO_VERSION_DRAGONFLY'
usesh: true
prepare: |
pkg update && pkg upgrade -y
pkg install -y bash wget gtar git gmake gsed gnugrep python3
run: | # DragonFly6.4 ships with Go 1.21.
run: |
set -eux
mkdir bin
export PATH=$(pwd)/bin:$PATH
Expand All @@ -141,43 +153,12 @@ jobs:
ln -s $(which gsed) $(pwd)/bin/sed
ln -s $(which gtar) $(pwd)/bin/tar
ln -s $(which python3) $(pwd)/bin/python
echo "::group::Print environment information"
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
echo "::endgroup::"
- name: Run end-to-end tests on Solaris
uses: vmactions/solaris-vm@v1
with:
copyback: false
envs: 'GO_VERSION_SOLARIS'
usesh: true
prepare: | # Solaris 11.4 ships with Go 1.17.
pkgutil -U
pkgutil -iy bash wget gtar git gmake gsed ggrep python33
run: |
set -eux
mkdir bin
wget https://go.dev/dl/go${GO_VERSION_SOLARIS}.solaris-amd64.tar.gz
gtar xzf go${GO_VERSION_SOLARIS}.solaris-amd64.tar.gz
ln -s $(pwd)/go/bin/go $(pwd)/bin/go
ln -s $(which ggrep) $(pwd)/bin/grep
ln -s $(which gmake) $(pwd)/bin/make
ln -s $(which gsed) $(pwd)/bin/sed
ln -s $(which gtar) $(pwd)/bin/tar
export PATH=$(pwd)/bin:$PATH
echo "::group::Print environment information"
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
Expand Down
Empty file.

0 comments on commit 0e6fdad

Please sign in to comment.