This repository was archived by the owner on Jan 15, 2026. It is now read-only.
chore(deps): bump github.com/go-viper/mapstructure/v2 (#487) #180
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Go | |
| on: | |
| push: | |
| # Also allow this workflow to be callable. | |
| workflow_call: | |
| jobs: | |
| build: | |
| name: Build | |
| # stick with Ubuntu 22.04 LTS for older glibc compatibility | |
| runs-on: "ubuntu-22.04" | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| - name: Set up Go | |
| uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0 | |
| 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-22.04" | |
| steps: | |
| - name: Check out code into the Go module directory | |
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| - name: Set up Go | |
| uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0 | |
| 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 |