Skip to content

Commit

Permalink
chore: add mockery generate directive (#343)
Browse files Browse the repository at this point in the history
* chore: add mockery generate directive

* fix(test): changed order of code generation

---------

Co-authored-by: David Rochow <[email protected]>
  • Loading branch information
MR2011 and drochow authored Oct 31, 2024
1 parent 1b4b19c commit d126a34
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ jobs:
run: go install github.com/onsi/ginkgo/v2/ginkgo
- name: Install Mockery
run: go install github.com/vektra/mockery/[email protected]
- name: Generate Gqlgen code
run: make gqlgen
- name: Generate Mockery code
run: make mockery
- name: Generate Gqlgen code
run: make gqlgen
- name: Run Tests
env:
DB_USER: my_username
Expand Down
3 changes: 3 additions & 0 deletions internal/database/interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@

package database

//go:generate go install github.com/vektra/mockery/[email protected]
//go:generate mockery

import "github.com/cloudoperators/heureka/internal/entity"

type Database interface {
Expand Down

0 comments on commit d126a34

Please sign in to comment.