Skip to content

Checks public/private address and ipv4 or ipv6 #10

Checks public/private address and ipv4 or ipv6

Checks public/private address and ipv4 or ipv6 #10

Workflow file for this run

# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
name: Go build and test
on:
push:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: [ '1.22', '1.23' ]
steps:
- uses: actions/checkout@v4
- name: Setup Go ${{ matrix.go-version }}
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Install dependencies
run: |
go get .
- name: Build Linux
run: GOOS="linux" GOARCH="amd64" go build -v ./...
- name: Build Windows
run: GOOS="windows" GOARCH="amd64" go build -v ./...
- name: Run Tests
run: go test -v ./...