Skip to content

Commit

Permalink
fix: comments
Browse files Browse the repository at this point in the history
  • Loading branch information
lunjon committed Mar 7, 2024
1 parent fc3e59f commit 2f12416
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 20 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ jobs:
go-version: ${{ matrix.version }}

- name: Build
run: go build -v ./...
run: make build

- name: Test
run: go test -v ./...
run: make test

- name: Check formatting
run: |
go fmt ./...
make fmt
git diff --exit-code
28 changes: 11 additions & 17 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,20 +1,14 @@
all:
go fmt ./...
go build
fmt:
find . -type f -name go.mod \
-execdir go fmt ./... \;

#core
cd core && go build
# event stores
cd eventstore/bbolt && go build
cd eventstore/sql && go build
cd eventstore/esdb && go build
test:
#core
cd core && go test -count 1 ./...
# event stores
cd eventstore/bbolt && go test -count 1 ./...
cd eventstore/sql && go test -count 1 ./...
cd eventstore/esdb && go test esdb_test.go -count 1 ./...
find . -type f -name go.mod | \
sed 's/go\.mod/.../g' | \
xargs -n 1 go test

# main
go test -count 1 ./...
build: fmt test
find . -type f -name go.mod -exec dirname '{}' ';' | \
xargs -n 1 go build -C

all: fmt build test

0 comments on commit 2f12416

Please sign in to comment.