Skip to content

🐛 Delete mockgen logic for CI/CD error #46

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,6 @@ jobs:
with:
fetch-depth: 0 # Changelog を正しく動作させるために必要

- name: Install GoReleaser and mockgen
run: |
wget https://github.com/goreleaser/goreleaser/releases/latest/download/goreleaser_amd64 -O /tmp/goreleaser
chmod +x /tmp/goreleaser
sudo mv /tmp/goreleaser /usr/local/bin/goreleaser
go get github.com/golang/mock/mockgen
env:
GO111MODULE: on
# Go をセットアップ
- uses: actions/setup-go@v3
with:
Expand Down
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
.PHONY: test

test:
go generate ./...
go test -v ./internal/service
1 change: 0 additions & 1 deletion internal/gateway/openai.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import (
"github.com/sashabaranov/go-openai"
)

//go:generate mockgen -source=openai.go -destination=../../mock/openai.go
type OpenAIGateway interface {
GetAnswerFromPrompt(prompt string, variability float32) (string, error)
AsyncGetAnswerFromPrompt(prompt string, variability float32) <-chan string
Expand Down