-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from hyperledger-labs/sql
Add SQL storage support
- Loading branch information
Showing
17 changed files
with
726 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Golang SDK | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
env: | ||
TEST_ARGS: -v | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: 1.22 | ||
|
||
- name: Build and Test | ||
run: cd zkp/golang && make | ||
|
||
- uses: codecov/codecov-action@v4 | ||
with: | ||
codecov_yml_path: ./codecov.yml | ||
token: ${{ secrets.CODECOV_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
VGO=go | ||
GOFILES := $(shell find ./internal ./pkg -name '*.go' -print) | ||
GOBIN := $(shell $(VGO) env GOPATH)/bin | ||
LINT := $(GOBIN)/golangci-lint | ||
|
||
# Expect that Zeto compiles with CGO disabled | ||
CGO_ENABLED=0 | ||
GOGC=30 | ||
|
||
.DELETE_ON_ERROR: | ||
|
||
all: test go-mod-tidy | ||
test: deps lint | ||
$(VGO) test ./internal/... ./pkg/... -cover -coverprofile=coverage.txt -covermode=atomic -timeout=30s ${TEST_ARGS} | ||
coverage.html: | ||
$(VGO) tool cover -html=coverage.txt | ||
coverage: test coverage.html | ||
lint: ${LINT} | ||
GOGC=20 $(LINT) run -v --timeout 5m | ||
${LINT}: | ||
$(VGO) install github.com/golangci/golangci-lint/cmd/[email protected] | ||
|
||
go-mod-tidy: .ALWAYS | ||
$(VGO) mod tidy | ||
e2e: test | ||
$(VGO) test ./integration-test | ||
.ALWAYS: ; | ||
clean: | ||
$(VGO) clean | ||
rm -f *.so | ||
deps: | ||
$(VGO) get -u ./... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.