Skip to content

Commit 7f6926e

Browse files
committed
nix develop -c mockery
1 parent 1571134 commit 7f6926e

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

.github/workflows/relayer-build.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -52,25 +52,23 @@ jobs:
5252
check-tidy:
5353
runs-on: ubuntu-latest
5454
steps:
55-
- name: Checkout
55+
- name: Check out code
5656
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
5757

58-
- name: Set up Go
59-
uses: actions/setup-go@v5
58+
- name: Install Nix
59+
uses: cachix/install-nix-action@02a151ada4993995686f9ed4f1be7cfbb229e56f # v31
6060
with:
61-
cache-dependency-path: go.sum
62-
go-version-file: go.mod
61+
nix_path: nixpkgs=channel:nixos-unstable
6362

6463
- name: Ensure modules are tidy
6564
run: |
66-
go install github.com/jmank88/[email protected]
67-
gomods tidy
65+
nix develop -c go run github.com/jmank88/[email protected] tidy
6866
git add --all
6967
git diff --minimal --cached --exit-code
7068
7169
- name: Ensure mockery has been run
7270
run: |
73-
grep -rl "^// Code generated by mockery" | grep .go$ | xargs -r rm
74-
find . -type f -name .mockery.yaml -execdir mockery \;
71+
nix develop -c grep -rl "^// Code generated by mockery" | grep .go$ | xargs -r rm
72+
nix develop -c find . -type f -name .mockery.yaml -execdir mockery \;
7573
git add --all
7674
git diff --stat --cached --exit-code

0 commit comments

Comments
 (0)