Skip to content

Commit

Permalink
adopt to go-version-file (#555)
Browse files Browse the repository at this point in the history
  • Loading branch information
morri-son authored Oct 24, 2023
1 parent 91ddc38 commit 26dad4c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/components.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: 1.19.x
go-version-file: '${{ github.workspace }}/go.mod'
- name: CTF
run: |
cd components/ocmcli
Expand All @@ -60,7 +60,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: 1.19.x
go-version-file: '${{ github.workspace }}/go.mod'
- name: CTF
run: |
cd components/helminstaller
Expand All @@ -86,7 +86,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: 1.19.x
go-version-file: '${{ github.workspace }}/go.mod'
- name: CTF
run: |
cd components/helmdemo
Expand All @@ -112,7 +112,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: 1.19.x
go-version-file: '${{ github.workspace }}/go.mod'
- name: CTF
run: |
cd components/subchartsdemo
Expand All @@ -138,7 +138,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: 1.19.x
go-version-file: '${{ github.workspace }}/go.mod'
- name: CTF
run: |
cd components/ecrplugin
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/lint_and_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: 1.19.x
go-version-file: '${{ github.workspace }}/go.mod'
- name: Unit test
run: |
PATH=$PATH:$(go env GOPATH)/bin make build
Expand All @@ -60,7 +60,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: 1.19.x
go-version-file: '${{ github.workspace }}/go.mod'
- name: Install goimports
run: |
go install golang.org/x/tools/cmd/goimports@latest
Expand Down Expand Up @@ -91,7 +91,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: 1.19.x
go-version-file: '${{ github.workspace }}/go.mod'
- name: Generate DeepCopy
run: |
PATH=$PATH:$(go env GOPATH)/bin make generate-deepcopy
Expand Down

0 comments on commit 26dad4c

Please sign in to comment.