Skip to content

Commit 20ac77e

Browse files
committed
chore: smoke-test the rename via go build
1 parent 6ebe4e6 commit 20ac77e

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

.github/workflows/rename-module.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,25 @@ jobs:
1919
fetch-depth: 0 # everything
2020
fetch-tags: true
2121

22-
- name: check out source commit
22+
- name: Check out source commit
2323
run: git checkout ${{ matrix.source_commit }}
2424

25-
- name: globally update module name
25+
- name: Globally update module name
2626
run: |
2727
go mod edit -module github.com/ava-labs/go-ethereum;
2828
find . -iname '*.go' | xargs sed -i -E \
2929
's|^((import)?\s.*?"github\.com/)ethereum/go-ethereum|\1ava-labs/go-ethereum|';
3030
31+
- name: Set up Go
32+
uses: actions/setup-go@v5
33+
with:
34+
go-version: 1.21.4
35+
36+
- name: Smoke test by `go build ./...`
37+
run: | # `go list` just demonstrates the updated module name
38+
go list .;
39+
go build ./...
40+
3141
- name: commit to "auto-rename-module-${{ matrix.source_commit }}" branch
3242
uses: devops-infra/action-commit-push@8bc2ff9f9de7aa2a7581fc7e5b6401c04cab54c7
3343
with:

0 commit comments

Comments
 (0)