Skip to content

Commit

Permalink
fix: failing ci - github actions
Browse files Browse the repository at this point in the history
upgraded go version to go1.18
  • Loading branch information
IamMayankThakur committed Nov 6, 2023
1 parent d99fae6 commit 57bfd01
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/enforce-go-mod-tidy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ jobs:
# 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
- 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.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
- name: Go mod tidy for root project
run: go mod tidy
- name: Go mod tidy for example apps
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/pre-commit-hook-run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,6 @@ jobs:
with:
node-version: '12'
- 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.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
- run: ./hooks/pre-commit.sh

0 comments on commit 57bfd01

Please sign in to comment.