Skip to content

Merge pull request #175 from maxmind/dependabot/github_actions/zizmor… #726

Merge pull request #175 from maxmind/dependabot/github_actions/zizmor…

Merge pull request #175 from maxmind/dependabot/github_actions/zizmor… #726

Workflow file for this run

name: Go
on:
push:
pull_request:
schedule:
- cron: '4 15 * * SUN'
permissions: {}
jobs:
build:
strategy:
matrix:
go-version: [1.24.x, 1.25.x]
platform: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.platform }}
name: "Build ${{ matrix.go-version }} test on ${{ matrix.platform }}"
steps:
- name: Set up Go 1.x
uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
with:
go-version: ${{ matrix.go-version }}
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
submodules: true
persist-credentials: false
- name: Get dependencies
run: go get -v -t -d ./...
- name: Build
run: go build -v ./...
- name: Test
run: go test -race -v ./...