Skip to content

Commit

Permalink
Fix Scripts
Browse files Browse the repository at this point in the history
Signed-off-by: Yogesh Deshpande <[email protected]>
  • Loading branch information
yogeshbdeshpande committed Mar 15, 2024
1 parent 8567b51 commit a554c6e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ jobs:
runs-on: ubuntu-latest
env:
GO111MODULE: on
CITEST: true
steps:
- uses: actions/setup-go@v3
with:
Expand Down Expand Up @@ -39,4 +40,4 @@ jobs:
- name: Run tests
run: |
go version
make -w test
make -w test CITEST=${{ env.CITEST }}
6 changes: 4 additions & 2 deletions mk/test.mk
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@

TEST_ARGS ?= -v -cover -race
MOCKGEN := $(shell go env GOPATH)/bin/mockgen
COPYRIGHT_FLAGS ?=
CITEST ?=

define MOCK_template
mock_$(1): $(1)
Expand Down Expand Up @@ -50,8 +52,8 @@ check-mockgen:
realtest: _mocks ; go test $(TEST_ARGS) $(GOPKG)
.PHONY: realtest

ifdef CI
COPYRIGHT_FLAGS += --no-year-check
ifdef CITEST
COPYRIGHT_FLAGS += --no-year-check
endif

checkcopyrights: ; python3 $(THIS_DIR)../scripts/check-copyright $(COPYRIGHT_FLAGS) .
Expand Down

0 comments on commit a554c6e

Please sign in to comment.