From a503de0f769b2684793477c50e55cbe8371acbbd Mon Sep 17 00:00:00 2001 From: Daniel Pupius Date: Tue, 21 May 2024 14:30:37 -0700 Subject: [PATCH] Fix CI lint now generated files are not committed --- .github/workflows/lint.yml | 7 ++++++- Makefile | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 24c7773..e9537bc 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -17,8 +17,13 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: '1.22' + go-version: "1.22" cache: false + - name: Install Protoc + uses: arduino/setup-protoc@v1 + - name: Generate server protofiles + run: | + make integration-test-server - name: golangci-lint uses: golangci/golangci-lint-action@v4 with: diff --git a/Makefile b/Makefile index 0a2a535..99cd993 100644 --- a/Makefile +++ b/Makefile @@ -17,7 +17,7 @@ options/ts_package.pb.go: options/ts_package.proto tools @protoc --go_out=paths=source_relative:./ ./options/*.proto .PHONY: lint -lint: ## Runs the go linter. +lint: integration-test-server ## Runs the go linter. @golangci-lint run .PHONY: test