Skip to content

Commit f17d8fe

Browse files
committed
refactor(ci): use make instead of go
1 parent dc1cdab commit f17d8fe

File tree

6 files changed

+33
-344
lines changed

6 files changed

+33
-344
lines changed

.github/workflows/gno-fmt.yaml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,17 @@ jobs:
3232
go-version: ${{ env.GO_VERSION }}
3333
cache: true
3434

35-
- name: Ensure deps are downloaded
36-
run: go mod download
35+
- name: Checkout Gno repo
36+
uses: actions/checkout@v4
37+
with:
38+
repository: gnolang/gno
39+
ref: master
40+
path: gno-repo
41+
42+
- name: Build gno
43+
working-directory: gno-repo
44+
run: make install
3745

3846
- name: Format
3947
working-directory: realms
40-
run: go run github.com/gnolang/gno/gnovm/cmd/gno fmt -diff ./...
48+
run: gno fmt -diff ./...

.github/workflows/gno-lint.yaml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,17 @@ jobs:
3131
go-version: ${{ env.GO_VERSION }}
3232
cache: true
3333

34-
- name: Ensure deps are downloaded
35-
run: go mod download
34+
- name: Checkout Gno repo
35+
uses: actions/checkout@v4
36+
with:
37+
repository: gnolang/gno
38+
ref: master
39+
path: gno-repo
40+
41+
- name: Build gno
42+
working-directory: gno-repo
43+
run: make install
3644

3745
- name: Lint
3846
working-directory: realms
39-
run: go run github.com/gnolang/gno/gnovm/cmd/gno lint ./... -v
47+
run: gno lint ./... -v

.github/workflows/gno-test.yaml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,17 @@ jobs:
3131
go-version: ${{ env.GO_VERSION }}
3232
cache: true
3333

34-
- name: Ensure deps are downloaded
35-
run: go mod download
34+
- name: Checkout Gno repo
35+
uses: actions/checkout@v4
36+
with:
37+
repository: gnolang/gno
38+
ref: master
39+
path: gno-repo
40+
41+
- name: Build gno
42+
working-directory: gno-repo
43+
run: make install
3644

3745
- name: Test
3846
working-directory: realms
39-
run: go run github.com/gnolang/gno/gnovm/cmd/gno test ./... -v
47+
run: gno test ./... -v

go.mod

Lines changed: 0 additions & 58 deletions
This file was deleted.

0 commit comments

Comments
 (0)