-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3a44faa
commit b9aee2a
Showing
6 changed files
with
45 additions
and
15 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ name: Go GitHub Actions | |
|
||
defaults: | ||
run: | ||
working-directory: zox-update-worker | ||
working-directory: tools/zos-update-worker | ||
|
||
on: | ||
push: | ||
|
@@ -31,12 +31,17 @@ jobs: | |
working-directory: tools/zos-update-worker | ||
|
||
- name: staticcheck | ||
uses: dominikh/[email protected] | ||
uses: dominikh/[email protected] | ||
with: | ||
version: "2022.1.3" | ||
working-directory: tools/zos-update-worker | ||
env: | ||
GO111MODULE: on | ||
|
||
- name: gofmt | ||
uses: Jerome1337/[email protected].4 | ||
uses: Jerome1337/[email protected].5 | ||
with: | ||
gofmt-flags: '-l -d' | ||
gofmt-flags: "-l -d" | ||
|
||
- name: Test | ||
run: go test -v ./... | ||
|
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,12 +8,11 @@ ldflags='-w -s -X $(version).Branch=$(branch) -X $(version).Revision=$(revision) | |
all: getdeps test | ||
|
||
getdeps: | ||
@echo "Installing staticcheck" && go get -u honnef.co/go/tools/cmd/staticcheck && go install honnef.co/go/tools/cmd/staticcheck | ||
@echo "Installing gocyclo" && go get -u github.com/fzipp/gocyclo/cmd/gocyclo | ||
@echo "Installing deadcode" && go get -u github.com/remyoudompheng/go-misc/deadcode | ||
@echo "Installing misspell" && go get -u github.com/client9/misspell/cmd/misspell | ||
@echo "Installing golangci-lint" && curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b ${GOPATH}/bin v1.50.1 | ||
@curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.50.1 | ||
@wget -O- -nv https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.50.1 | ||
@echo "Installing golangci-lint" && go install github.com/golangci/golangci-lint/cmd/[email protected] | ||
|
||
|
||
verifiers: fmt lint cyclo deadcode spelling staticcheck | ||
|
@@ -38,7 +37,7 @@ spelling: | |
@${GOPATH}/bin/misspell -i monitord -error `find .` | ||
|
||
staticcheck: | ||
go run honnef.co/go/tools/cmd/staticcheck -- ./... | ||
@${GOPATH}/bin/staticcheck -- ./... | ||
|
||
test: verifiers | ||
go test -v -vet=off ./... | ||
|
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
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