Skip to content

Commit

Permalink
ci: Improve CI pipeline performance (#270)
Browse files Browse the repository at this point in the history
  • Loading branch information
philipp-hinteregger committed Nov 2, 2022
1 parent 9177c76 commit c6ae4a4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,6 @@ jobs:
name: Compile
needs: prepare_ci_run
runs-on: ubuntu-22.04
env:
BRANCH: ${{ needs.prepare_ci_run.outputs.BRANCH }}
DATETIME: ${{ needs.prepare_ci_run.outputs.DATETIME }}
GIT_SHA: ${{ needs.prepare_ci_run.outputs.GIT_SHA }}
strategy:
matrix:
config:
Expand All @@ -87,12 +83,10 @@ jobs:
cache-dependency-path: '${{ matrix.config.folder }}go.sum'

- name: Go vet
if: matrix.config.name != 'functions-runtime'
working-directory: ./${{ matrix.config.folder }}
run: go vet ./...

- name: Go fmt
if: matrix.config.name != 'functions-runtime'
working-directory: ./${{ matrix.config.folder }}
run: go fmt ./...

Expand Down
4 changes: 2 additions & 2 deletions operator/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,12 @@ vet: ## Run go vet against code.
go vet ./...

.PHONY: test
test: manifests generate fmt vet envtest ## Run tests.
test: manifests envtest ## Run tests.
KUBEBUILDER_ASSETS="$(shell $(ENVTEST) use $(ENVTEST_K8S_VERSION) -p path)" go test ./... -coverprofile cover.out

##@ Build
.PHONY: build
build: generate fmt vet ## Build manager binary.
build: generate ## Build manager binary.
$(COMMONENVVAR) $(BUILDENVVAR) go build -ldflags '-w -X main.gitCommit=$(HASH) -X main.buildTime=$(BUILD_TIME) -X main.buildVersion=$(TAG)' -o bin/manager main.go

.PHONY: run
Expand Down
2 changes: 1 addition & 1 deletion scheduler/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ vet: ## Run go vet against code.
go vet ./...

.PHONY: test
test: fmt vet ## Run tests.
test: ## Run tests.
go test ./... -coverprofile cover.out

.PHONY: kustomize
Expand Down

0 comments on commit c6ae4a4

Please sign in to comment.