Skip to content

chore(deps): bump actions/setup-go from 5.0.1 to 5.0.2 #106

chore(deps): bump actions/setup-go from 5.0.1 to 5.0.2

chore(deps): bump actions/setup-go from 5.0.1 to 5.0.2 #106

Workflow file for this run

name: Go
on:
push:
# Also allow this workflow to be callable.
workflow_call:
jobs:
build:
name: Build
# stick with Ubuntu 20.04 LTS for older glibc compatibility
runs-on: "ubuntu-20.04"
steps:
- name: Check out code
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Set up Go
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with:
go-version-file: "go.mod"
- name: Print Go Version
run: go version
- name: Build
run: go build -v .
- name: Test
run: go test -timeout 20m ./...
- name: Vet
run: go vet ./...
gofmt:
name: Run gofmt
runs-on: "ubuntu-20.04"
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Set up Go
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with:
go-version-file: "go.mod"
- name: gofmt
run: |
if [ "$(find . -iname '*.go' | xargs gofmt -l)" ]
then
find . -iname '*.go' | xargs gofmt -d
exit 1
fi