Skip to content

Commit

Permalink
Merge 8b57cdb into d65a798
Browse files Browse the repository at this point in the history
  • Loading branch information
QuangTung97 committed Apr 4, 2024
2 parents d65a798 + 8b57cdb commit aff5f21
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 4 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: zk
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-20.04
services:
zookeeper:
image: zookeeper:3.9.2
ports:
- 2181:2181
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: "1.21.9"
- name: Lint
run: make lint
- name: Test
run: make test
- name: Convert coverage.out to coverage.lcov
uses: jandelgado/gcov2lcov-action@v1.0.6
- name: Coveralls
uses: coverallsapp/github-action@v1.1.2
with:
github-token: ${{ secrets.github_token }}
path-to-lcov: coverage.lcov
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
/apache-zookeeper-*/
/apache-zookeeper-*.tar.gz
/.idea
/coverage.cov
/coverage.out
/bin
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
.PHONY: test build coverage
.PHONY: test lint build coverage

test:
go test -race -p 1 -count=1 -tags=integration -covermode=atomic -coverprofile=coverage.cov ./...
go test -race -p 1 -count=1 -tags=integration -covermode=atomic -coverprofile=coverage.out ./...

lint:
echo "Do nothing"

build:
go build -o bin/lock test-examples/lock/main.go
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/QuangTung97/zk

go 1.19
go 1.21.2

require github.com/stretchr/testify v1.9.0

Expand Down
1 change: 1 addition & 0 deletions todolist
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
*) Add CI Pipeline for Integration Tests
*) Add Lint
*) Batching Read & Write to TCP (Need to do or not?)
*) Stress Tests with Race Detector
*) Add Multi-Ops Transactions

0 comments on commit aff5f21

Please sign in to comment.