Skip to content

Commit 57bfd01

Browse files
fix: failing ci - github actions
upgraded go version to go1.18
1 parent d99fae6 commit 57bfd01

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.github/workflows/enforce-go-mod-tidy.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ jobs:
99
# When using actions/checkout in a custom container, the directory is not treated as a git repo and does not have a .git directory, therefore we need to initialize it as a git repo. This will allows us to track changes made after go mod tidy runs
1010
- name: Create a new git repository
1111
run: git init && git add --all && git -c user.name='test' -c user.email='[email protected]' commit -m 'init for pr action'
12+
- name: Install latest go
13+
run: wget https://go.dev/dl/go1.18.10.linux-amd64.tar.gz && rm -rf /usr/local/go && tar -C /usr/local -xzf go*.tar.gz && export PATH=$PATH:/usr/local/go/bin
1214
- name: Go mod tidy for root project
1315
run: go mod tidy
1416
- name: Go mod tidy for example apps

.github/workflows/pre-commit-hook-run.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,6 @@ jobs:
2020
with:
2121
node-version: '12'
2222
- run: git init && git add --all && git -c user.name='test' -c user.email='[email protected]' commit -m 'init for pr action'
23+
- name: Install latest go
24+
run: wget https://go.dev/dl/go1.18.10.linux-amd64.tar.gz && rm -rf /usr/local/go && tar -C /usr/local -xzf go*.tar.gz && export PATH=$PATH:/usr/local/go/bin
2325
- run: ./hooks/pre-commit.sh

0 commit comments

Comments
 (0)