Skip to content

Bump actions/setup-go from 5.0.2 to 5.1.0 (#100) #273

Bump actions/setup-go from 5.0.2 to 5.1.0 (#100)

Bump actions/setup-go from 5.0.2 to 5.1.0 (#100) #273

Workflow file for this run

name: Go
on:
push:
paths-ignore:
- "README.md"
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Set up Go
uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5
with:
cache: true
go-version-file: "go.mod"
- name: Print Go Version
run: go version
- name: Build
run: go build -v .
- name: Test
run: go test ./...
- name: gofmt
run: |
if [ "$(find . -iname '*.go' | xargs gofmt -l)" ]
then
find . -iname '*.go' | xargs gofmt -d
exit 1
fi
- name: Run golangci-lint
uses: golangci/golangci-lint-action@971e284b6050e8a5849b72094c50ab08da042db8 # v4
- name: Run goreleaser check
uses: goreleaser/goreleaser-action@286f3b13b1b49da4ac219696163fb8c1c93e1200 # v5
with:
version: latest
args: check