Skip to content
This repository has been archived by the owner on Nov 21, 2024. It is now read-only.

Commit

Permalink
ci: rm go vet
Browse files Browse the repository at this point in the history
  • Loading branch information
shiron-dev committed Oct 25, 2024
1 parent 58f27de commit 579a091
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 30 deletions.
10 changes: 0 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ jobs:
- docker-build-check
- migration-check
- golang-build-check
- golang-vet-check
- golang-fmt-check
- golang-lint-check
- golang-test-comment-check
Expand Down Expand Up @@ -168,15 +167,6 @@ jobs:
- name: Run go build
run: xc build:v

golang-vet-check:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-golang
- name: Run go vet
run: xc vet

golang-fmt-check:
runs-on: ubuntu-latest
timeout-minutes: 10
Expand Down
21 changes: 1 addition & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,6 @@ Run: once

```bash
go mod tidy
go install golang.org/x/tools/go/analysis/passes/defers/cmd/defers@latest
go install golang.org/x/tools/go/analysis/passes/fieldalignment/cmd/fieldalignment@latest
go install golang.org/x/tools/go/analysis/passes/findcall/cmd/findcall@latest
go install golang.org/x/tools/go/analysis/passes/nilness/cmd/nilness@latest
go install golang.org/x/tools/go/analysis/passes/shadow/cmd/shadow@latest
```

### init
Expand All @@ -47,7 +42,7 @@ fi

Check golang code.

Requires: init, fmt, vet, lint, test
Requires: init, fmt, lint, test
RunDeps: async

### fmt
Expand All @@ -70,20 +65,6 @@ Requires: init
golangci-lint run
```

### vet

Vet golang code.

Requires: init

```bash
go vet ./...
go vet -vettool=$(command -v defers) ./...
go vet -vettool=$(command -v fieldalignment) ./...
go vet -vettool=$(command -v nilness) ./...
go vet -vettool=$(command -v shadow) ./...
```

### test

Test golang code.
Expand Down

0 comments on commit 579a091

Please sign in to comment.