Skip to content

Commit 9222380

Browse files
authored
Merge pull request #93 from osbytes/workflow
fixing workflow
2 parents 5656fd8 + ef93261 commit 9222380

2 files changed

Lines changed: 5 additions & 13 deletions

File tree

.github/workflows/go.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ jobs:
1515
- name: Set up Go
1616
uses: actions/setup-go@v2
1717
with:
18-
go-version: 1.17
18+
go-version: 1.18
1919

20-
- name: Install mockery
21-
run: go get github.com/vektra/mockery/v2/.../
20+
- name: Pull mockery docker image
21+
run: docker pull vektra/mockery
2222

23-
- name: Create mocks
24-
run: mockery --all --inpackage
23+
- name: Run mockery
24+
run: docker run -v ${{ github.workspace }}:/src -w /src vektra/mockery --all --inpackage
2525

2626
- name: Build
2727
run: go build -v ./...

README.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,6 @@ Install all go dependencies
2323
go get ./...
2424
```
2525

26-
Make sure you install mockery!!
27-
28-
Open a terminal window and run this
29-
30-
```sh
31-
go get github.com/vektra/mockery/v2/.../
32-
```
33-
3426
### Run the app
3527

3628
Copy `.env.sample` to `.env` and add secrets

0 commit comments

Comments
 (0)