-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9c7d392
commit 9596c1f
Showing
1 changed file
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,11 +10,11 @@ jobs: | |
- name: Create a new git repository | ||
run: git init && git add --all && git -c user.name='test' -c user.email='[email protected]' commit -m 'init for pr action' | ||
- name: Install latest go | ||
run: wget https://go.dev/dl/go1.21.3.linux-amd64.tar.gz && rm -rf /usr/local/go && tar -C /usr/local -xzf go*.tar.gz && export PATH=$PATH:/usr/local/go/bin && rm go1.21.3.linux-amd64.tar.gz | ||
run: wget https://go.dev/dl/go1.22.3.linux-amd64.tar.gz && rm -rf /usr/local/go && tar -C /usr/local -xzf go*.tar.gz && export PATH=$PATH:/usr/local/go/bin && rm go1.22.3.linux-amd64.tar.gz | ||
- name: Go mod tidy for root project | ||
run: go mod tidy | ||
- name: Go mod tidy for example apps | ||
working-directory: ./examples | ||
run: go mod tidy | ||
- name: Check for file changes by go mod tidy | ||
run: git status | grep -q 'nothing to commit, working directory clean' && exit 0 || exit 1 | ||
run: git status | grep -q 'nothing to commit, working directory clean' && exit 0 || exit 1 |