Skip to content

Commit 587c64e

Browse files
committed
ci: run mod-check before other steps
Make sure previous steps do not download dependencies with default settings (using golang.org proxy) so they are not caches and we see the commit hash mismatch error if it is present.
1 parent dffcc78 commit 587c64e

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

.github/workflows/main.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ env:
2424

2525
jobs:
2626
########################
27-
# RPC compile and check
27+
# go mod check
2828
########################
29-
rpc-check:
30-
name: RPC compilation check
29+
mod-check:
30+
name: go mod check
3131
runs-on: ubuntu-latest
3232
steps:
3333
- name: git checkout
@@ -38,17 +38,14 @@ jobs:
3838
with:
3939
go-version: '~${{ env.GO_VERSION }}'
4040

41-
- name: RPC for JS compilation
42-
run: make rpc-js-compile
43-
4441
- name: run check
45-
run: make rpc-check
46-
42+
run: make mod-check
43+
4744
########################
48-
# go mod check
45+
# RPC compile and check
4946
########################
50-
mod-check:
51-
name: go mod check
47+
rpc-check:
48+
name: RPC compilation check
5249
runs-on: ubuntu-latest
5350
steps:
5451
- name: git checkout
@@ -59,8 +56,11 @@ jobs:
5956
with:
6057
go-version: '~${{ env.GO_VERSION }}'
6158

59+
- name: RPC for JS compilation
60+
run: make rpc-js-compile
61+
6262
- name: run check
63-
run: make mod-check
63+
run: make rpc-check
6464

6565
########################
6666
# build and lint code

0 commit comments

Comments
 (0)