Skip to content

Bump golangci/golangci-lint-action from 5 to 6 #121

Bump golangci/golangci-lint-action from 5 to 6

Bump golangci/golangci-lint-action from 5 to 6 #121

Workflow file for this run

name: Go
on:
push:
branches:
- main
pull_request:
branches:
- main
permissions:
contents: read
# Only one build per ref.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
goreleaser-build:
name: GoReleaser Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: set up Go
uses: actions/setup-go@v5
with:
go-version: '1.22.x'
- name: cross build with goreleaser
uses: goreleaser/goreleaser-action@v5
with:
distribution: goreleaser
version: latest
args: build --clean --snapshot
test:
name: Test
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: set up Go
uses: actions/setup-go@v5
with:
go-version: '1.22.x'
- name: go test
run: go test -timeout 15m ./...