Skip to content

Commit 5414d14

Browse files
committed
fixing workflow
1 parent 5656fd8 commit 5414d14

2 files changed

Lines changed: 14 additions & 9 deletions

File tree

.github/workflows/go.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,19 @@ on:
77
branches: [main]
88

99
jobs:
10+
mockery-container:
11+
runs-on: ubuntu-latest
12+
container:
13+
image: vektra/mockery
14+
ports:
15+
- 80
16+
volumes:
17+
- my_docker_volume:/volume_mount
18+
options: --cpus 1
19+
steps:
20+
- name: Run mockery from container
21+
run: docker run -v ${{ github.workspace }}:/src -w /src vektra/mockery --all --inpackage
22+
1023
build:
1124
runs-on: ubuntu-latest
1225
steps:
@@ -15,7 +28,7 @@ jobs:
1528
- name: Set up Go
1629
uses: actions/setup-go@v2
1730
with:
18-
go-version: 1.17
31+
go-version: 1.18
1932

2033
- name: Install mockery
2134
run: go get github.com/vektra/mockery/v2/.../

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)