Skip to content

Commit ffc392a

Browse files
committed
test vet for macos-precheck PR
1 parent 47be8d0 commit ffc392a

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.github/workflows/make-check.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@ jobs:
2525
with:
2626
go-version: ${{ matrix.go }}
2727
- name: Build
28-
run: make check
28+
run: make vet
2929
- if: runner.os == 'Linux'
3030
name: Go version check
3131
run: make goversioncheck
32+
- if: runner.os == 'macOS'
33+
name: pkg-config check
34+
run: command -v pkg-config || echo "pkg-config is missing"

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,10 @@ e2e-story-microshift: install
256256
fmt: $(TOOLS_BINDIR)/goimports
257257
@$(TOOLS_BINDIR)/goimports -l -w $(SOURCE_DIRS)
258258

259+
.PHONY: vet
260+
vet: gen_release_info
261+
go vet -tags "containers_image_openpgp,build" ./...
262+
259263
# Run golangci-lint against code
260264
.PHONY: lint cross-lint
261265
lint: $(TOOLS_BINDIR)/golangci-lint gen_release_info

0 commit comments

Comments
 (0)