Bump golang.org/x/net from 0.10.0 to 0.17.0 (#17) #121
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: Build | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- "*" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: 1.20.2 | |
- name: Unit tests | |
run: | | |
go test -v -race ./... -covermode=atomic # Run all the tests with the race detector enabled | |
- name: Static analysis | |
run: | | |
go vet ./... # go vet is the official Go static analyzer | |
- name: Cyclomatic complexity | |
run: | | |
go install github.com/fzipp/gocyclo/cmd/gocyclo@latest | |
/home/runner/go/bin/gocyclo -over 19 main.go pkg # forbid code with huge/complex functions | |
- name: Dry Run GoReleaser | |
uses: goreleaser/goreleaser-action@v2 | |
with: | |
version: latest | |
args: release --parallelism 1 --snapshot --clean | |
- name: Test Binary is Runnable | |
run: "dist/build_win_and_linux_linux_amd64_v1/komocli --help" | |
- name: golangci-lint | |
uses: golangci/[email protected] | |
with: | |
# version: latest | |
# skip-go-installation: true | |
skip-pkg-cache: true | |
skip-build-cache: true | |
# args: --timeout=15m |