-
Notifications
You must be signed in to change notification settings - Fork 112
43 lines (37 loc) · 1.09 KB
/
mocks.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Mocks check
on:
pull_request:
branches:
- development
# Commented paths to avoid skipping required workflow
# See https://github.community/t/feature-request-conditional-required-checks/16761
# paths:
# - .github/workflows/mocks.yml
# - "**/*.go"
jobs:
mocks-check:
runs-on: buildjet-4vcpu-ubuntu-2204
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
all_but_latest: true
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.21"
stable: true
check-latest: true
- run: go install go.uber.org/mock/[email protected]
- name: Check devnet module
run: |
cd devnet && \
go mod download && \
go generate -run "mockgen" -tags integration ./... && \
git diff --exit-code && \
cd ..
- name: Check Gossamer module
run: |
go mod download && \
go generate -run "mockgen" -tags integration ./... && \
git diff --exit-code