Skip to content
Merged
Show file tree
Hide file tree
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
9 changes: 6 additions & 3 deletions .github/workflows/fuzzing-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,18 @@ on:

jobs:
fuzzing:
name: Fuzzing
runs-on: ubuntu-22.04
name: Fuzzing (Go ${{ matrix.go }})
runs-on: ubuntu-24.04
strategy:
matrix:
go: [ '1.25', '1.26' ]

steps:
# Checkout this repository
- uses: actions/checkout@v6
- uses: actions/setup-go@v6
with:
go-version: '1.20'
go-version: ${{ matrix.go }}

# Checkout the Fuzzing seed and generated corpus
- uses: actions/checkout@v6
Expand Down
33 changes: 21 additions & 12 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,55 +11,64 @@ on:

jobs:
gofmt:
name: go fmt
runs-on: ubuntu-22.04
name: go fmt (Go ${{ matrix.go }})
runs-on: ubuntu-24.04
strategy:
matrix:
go: [ '1.25', '1.26' ]

steps:
- uses: actions/checkout@v6
- uses: actions/setup-go@v6
with:
go-version: '1.20'
go-version: ${{ matrix.go }}

- name: Run go fmt
if: runner.os != 'Windows'
run: diff -u <(echo -n) <(gofmt -d -s .)

govet:
name: go vet
runs-on: ubuntu-22.04
name: go vet (Go ${{ matrix.go }})
runs-on: ubuntu-24.04
strategy:
matrix:
go: [ '1.25', '1.26' ]

steps:
- uses: actions/checkout@v6
- uses: actions/setup-go@v6
with:
go-version: '1.20'
go-version: ${{ matrix.go }}

- name: Run go vet
run: make vet

staticcheck:
name: staticcheck
runs-on: ubuntu-22.04
name: staticcheck (Go ${{ matrix.go }})
runs-on: ubuntu-24.04
strategy:
matrix:
go: [ '1.25', '1.26' ]

steps:
- uses: actions/checkout@v6
- uses: actions/setup-go@v6
with:
go-version: '1.20'
go-version: ${{ matrix.go }}

- name: Run staticcheck
uses: dominikh/staticcheck-action@v1.4.1
with:
version: "2023.1.3"
version: "2026.1"
install-go: false
cache-key: staticcheck

unittesting:
name: unit testing (Go ${{ matrix.go }})
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
strategy:
matrix:
go: [ '1.20', '1.19' ]
go: [ '1.25', '1.26' ]

steps:
- uses: actions/checkout@v6
Expand Down
8 changes: 7 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
module github.com/andygrunwald/vdf

go 1.15
go 1.25

require github.com/stretchr/testify v1.11.1

require (
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
9 changes: 0 additions & 9 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,19 +1,10 @@
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw=
github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo=
github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA=
github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU=
github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo=
github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu7U=
github.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
Loading