Update latest golang and mod #42
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Go build and test | |
on: [push, pull_request] | |
jobs: | |
build: | |
name: Build and test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.23 | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v2 | |
- name: Build | |
run: go build -v . | |
- name: Go test | |
run: go test ./... | |
- name: Install bats | |
run: sudo apt install bats | |
- name: Run IPv4/v6/v4v6 tests | |
run: | | |
export TERM=dumb | |
bats tests/acceptanceIPv4.bats | |
bats tests/acceptanceIPv6.bats | |
bats tests/acceptanceIPv4v6.bats |