Add renovate.json #63
This file contains 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: golang/static | |
on: [push, pull_request] | |
jobs: | |
build: | |
name: build | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
go-version: [1.22.x] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-go@v2 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- run: go mod download | |
- run: go build -v . | |
tests: | |
name: tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-go@v2 | |
with: | |
go-version: 1.22 | |
- run: go mod download | |
- run: go install golang.org/x/tools/go/analysis/passes/shadow/cmd/shadow@latest | |
- run: go install golang.org/x/tools/cmd/goimports@latest | |
- run: go install honnef.co/go/tools/cmd/staticcheck@latest | |
- run: go install golang.org/x/lint/golint@latest | |
- run: go install github.com/nishanths/exhaustive/...@latest | |
- run: go install github.com/fzipp/gocyclo/cmd/gocyclo@latest | |
- name: vet | |
run: go vet ./... | |
- name: shadow | |
run: go vet -vettool=$HOME/go/bin/shadow ./... | |
- name: imports | |
run: d="$($HOME/go/bin/goimports -d ./)" && if [ -n "$d" ]; then echo "goimports generated output:" ; echo "$d"; exit 1; fi | |
- name: staticheck | |
run: $HOME/go/bin/staticcheck ./... | |
- name: lint | |
run: set +e ; d="$($HOME/go/bin/golint -min_confidence 1 ./... | grep -v comment)" ; if [ -z "$d" ]; then exit 0 ; else echo "golint check output:" ; echo "$d" ; exit 1 ; fi ; set -e | |
- name: exhaustive | |
run: $HOME/go/bin/exhaustive -default-signifies-exhaustive ./... | |
- name: cyclo | |
run: $HOME/go/bin/gocyclo -over 19 $(find . -iname '*.go' -type f) | |
- name: fmt | |
run: test -z $(gofmt -s -l $(find . -iname '*.go' -type f)) |