Skip to content
This repository has been archived by the owner on Feb 14, 2024. It is now read-only.

Commit

Permalink
feat: implement version service (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
zalsader authored Jul 17, 2023
1 parent b7b4be0 commit e8bce81
Show file tree
Hide file tree
Showing 17 changed files with 1,086 additions and 582 deletions.
1 change: 1 addition & 0 deletions .github/workflows/buf-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ jobs:
github_token: ${{ github.token }}
- uses: bufbuild/buf-lint-action@v1
- uses: bufbuild/buf-breaking-action@v1
if: ${{ env.CHECK_BREAKING == 'true' }} # Change to true when API is stable
with:
# The 'main' branch of the GitHub repository that defines the module.
against: "https://github.com/${GITHUB_REPOSITORY}.git#branch=main"
27 changes: 21 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,36 @@ all: build
help: ## Display this help.
@awk 'BEGIN {FS = ":.*##"; printf "\nUsage:\n make \033[36m<target>\033[0m\n"} /^[a-zA-Z_0-9-]+:.*?##/ { printf " \033[36m%-15s\033[0m %s\n", $$1, $$2 } /^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0, 5) } ' $(MAKEFILE_LIST)

##@ Build
##@ Development

.PHONY: build
build: buf
.PHONY: generate
generate: buf
$(BUF) build
$(BUF) generate
cd api/v1 && go build

##@ Development

.PHONY: lint
lint: buf
$(BUF) lint
$(BUF) breaking --against '.git#branch=main'

.PHONY: fmt
fmt: ## Run go fmt against code.
go fmt ./...

.PHONY: vet
vet: ## Run go vet against code.
go vet ./...

##@ Build

.PHONY: build
build: generate fmt vet ## Build server binary.
go build -o bin/server main.go

.PHONY: run
run: generate fmt vet ## Run a server from your host.
go run ./main.go

##@ Build Dependencies

## Location to install dependencies to
Expand Down
119 changes: 119 additions & 0 deletions api/v1/apiv1connect/version_service.connect.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 0 additions & 17 deletions api/v1/go.mod

This file was deleted.

22 changes: 0 additions & 22 deletions api/v1/go.sum

This file was deleted.

Loading

0 comments on commit e8bce81

Please sign in to comment.