Skip to content

Commit

Permalink
Run go vet in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
dharmab committed Aug 18, 2024
1 parent 81d2249 commit 13b1661
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/skyeye.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ jobs:
uses: golangci/golangci-lint-action@v6
with:
version: latest
- name: vet
run: make vet
- name: Format
run: go fmt ./... && git diff --exit-code
- name: Tidy
Expand Down Expand Up @@ -138,4 +140,4 @@ jobs:
files: |
dist/skyeye-linux-amd64.tar.gz
dist/skyeye-windows-amd64.zip
token: ${{ secrets.RELEASE_TOKEN }}
token: ${{ secrets.RELEASE_TOKEN }}
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -121,11 +121,15 @@ $(SKYEYE_ELF): generate $(SKYEYE_SOURCES) $(LIBWHISPER_PATH) $(WHISPER_H_PATH)
test: generate
$(BUILD_VARS) $(GO) run gotest.tools/gotestsum -- $(BUILD_FLAGS) ./...

.PHONY: vet
vet: generate
$(BUILD_VARS) $(GO) vet $(BUILD_FLAGS) ./...

.PHONY: mostlyclean
mostlyclean:
rm -f "$(SKYEYE_EXE)" "$(SKYEYE_ELF)"
find . -type f -name 'mock_*.go' -delete

.PHONY: clean
clean: mostlyclean
rm -rf "$(WHISPER_CPP_PATH)"
rm -rf "$(WHISPER_CPP_PATH)"

0 comments on commit 13b1661

Please sign in to comment.