Skip to content

Commit

Permalink
fix: ci
Browse files Browse the repository at this point in the history
  • Loading branch information
kj455 committed Dec 13, 2024
1 parent 42ed4fc commit db838b6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,8 @@ jobs:
- uses: actions/setup-go@v5
with:
go-version-file: ./go.mod
- name: Generate mocks
run: |
go install go.uber.org/mock/mockgen@v0.4.0
make mockgen
- name: Setup
run: make setup
- name: Test
run: make test

Expand Down
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ clean:
rm -rf .coverage
rm -rf ./pkg/**/mock
rm -rf .tmp/**
setup:
make import-tools
make mockgen
coverage:
mkdir -p .coverage
go test -coverprofile=.coverage/coverage.out $(PKG)
Expand All @@ -24,3 +27,6 @@ mockgen:
done' sh {} +
fmt:
go fmt $(PKG)
import-tools:
go install gotest.tools/gotestsum@v1.12.0
go install go.uber.org/mock/mockgen@v0.4.0

0 comments on commit db838b6

Please sign in to comment.