Skip to content

update go.mod

update go.mod #177

Workflow file for this run

#
# Do not edit. This file was generated via the "workflow" command line tool.
# More information about the tool can be found at github.com/xh3b4sd/workflow.
#
# workflow create golang
#
name: "go-build"
on: "push"
jobs:
go-build:
runs-on: "ubuntu-latest"
steps:
- name: "Setup Git Project"
uses: "actions/checkout@v4"
- name: "Setup Go Env"
uses: "actions/setup-go@v5"
with:
cache: true
go-version: "1.22.5"
- name: "Check Go Dependencies"
run: |
go mod tidy
git diff --exit-code
- name: "Check Go Tests"
run: |
go test ./... -race
- name: "Check Go Formatting"
run: |
test -z $(gofmt -l -s .)
- name: "Check Go Linters"
run: |
curl -LOs https://github.com/golangci/golangci-lint/releases/download/v1.54.2/golangci-lint-1.54.2-linux-amd64.tar.gz
tar -xzf golangci-lint-1.54.2-linux-amd64.tar.gz
./golangci-lint-1.54.2-linux-amd64/golangci-lint run