Skip to content

Add golangci-lint to precious config #424

Add golangci-lint to precious config

Add golangci-lint to precious config #424

Workflow file for this run

name: Go
on:
push:
pull_request:
schedule:
- cron: '6 15 * * SUN'
permissions: {}
jobs:
build:
strategy:
matrix:
go-version: [1.24.x, 1.25.x]
# We don't test on macOS and windows as the database builds aren't
# repeatable there for some reason. As such, tests fail. It'd
# probably be worth looking into this at some point.
platform: [ubuntu-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@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.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:
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 ./...