Skip to content

Bump actions/checkout from 4 to 6 (#123) #267

Bump actions/checkout from 4 to 6 (#123)

Bump actions/checkout from 4 to 6 (#123) #267

name: build by commit
on:
push:
branches:
- "*"
pull_request:
branches:
- "*"
env:
ARTIFACT_VERSION: ${{ github.ref_name }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Verify go.mod is sane
run: go mod tidy && git diff --no-patch --exit-code
- name: Run code lint
uses: golangci/golangci-lint-action@v8.0.0
with:
args: --timeout=3m
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
version: v2.9.0
install-only: true
- name: Verify build
shell: bash
run: |
goreleaser check
ARTIFACT_VERSION="local" goreleaser build --clean --snapshot