Skip to content

Update golangci/golangci-lint-action action to v4 #223

Update golangci/golangci-lint-action action to v4

Update golangci/golangci-lint-action action to v4 #223

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
golang:
name: Build and test
runs-on: ubuntu-latest
strategy:
matrix:
go: [ '1.21' ]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- run: go version
- run: go build ./...
- run: go test -race -v ./...
- uses: golangci/golangci-lint-action@v4
with:
skip-pkg-cache: true
skip-build-cache: true
golang_cross:
name: Cross Compile
runs-on: ubuntu-latest
strategy:
matrix:
go: [ '1.21' ]
goos: [ 'freebsd', 'linux', 'openbsd' ]
env:
GOOS: ${{ matrix.goos }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- run: go build ./...
env:
GOOS: ${{ matrix.goos }}
CGO_ENABLED: 0