Skip to content

Commit

Permalink
OpenBSD tests (#31)
Browse files Browse the repository at this point in the history
* OpenBSD tests now run properly
  • Loading branch information
Koeng101 authored Dec 17, 2023
1 parent 5b4d0db commit d1a4243
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,22 +24,19 @@ jobs:
run: go test -v ./lib/...
openbsd-test:
runs-on: ubuntu-latest
name: Tests on OpenBSD
name: 1.21.5 openbsd
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup OpenBSD VM
- name: Run OpenBSD tests
uses: vmactions/openbsd-vm@v1
with:
prepare: |
pkg_add go
pkg_add curl
curl -L https://dl.google.com/go/go1.21.5.openbsd-amd64.tar.gz -o go1.21.5.openbsd-amd64.tar.gz
tar -C /usr/local -xzf go1.21.5.openbsd-amd64.tar.gz
export PATH=$PATH:/usr/local/go/bin
go install golang.org/x/tools/cmd/goimports@latest
- name: Upgrade go version to 1.21
run: |
ftp https://dl.google.com/go/go1.21.5.openbsd-amd64.tar.gz
doas rm -rf /usr/local/go
doas tar -C /usr/local -xzf go1.21.5.openbsd-amd64.tar.gz
go version
- name: Run tests in OpenBSD
run: go test -v ./lib/...

run: |
export PATH=$PATH:/usr/local/go/bin
go test -v ./lib/...

0 comments on commit d1a4243

Please sign in to comment.