Skip to content

Commit

Permalink
refactor(ci): use go.mod file for Go version in workflows
Browse files Browse the repository at this point in the history
Signed-off-by: yxxhero <[email protected]>
  • Loading branch information
yxxhero authored and wawa0210 committed Jan 2, 2025
1 parent f8c97ee commit b8548c3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-image-scanning.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
- name: install Go
uses: actions/setup-go@v5
with:
go-version: "1.21"
go-version-file: go.mod
- name: Generating image tag
id: runtime-tag
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- name: install Go
uses: actions/setup-go@v5
with:
go-version: "1.21"
go-version-file: go.mod
- name: verify license
run: hack/verify-license.sh
- name: go tidy
Expand All @@ -53,7 +53,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: "1.21"
go-version-file: go.mod
- run: make tidy
- run: make test
- name: Upload coverage to Codecov
Expand Down

0 comments on commit b8548c3

Please sign in to comment.