Skip to content

Commit

Permalink
Use go.mod for go version
Browse files Browse the repository at this point in the history
  • Loading branch information
dabradley committed Sep 9, 2024
1 parent 3d239ee commit 92de037
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/darwin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Set up Go 1.x
uses: actions/setup-go@v5
with:
go-version: '1.23.1'
go-version-file: 'go.mod'
id: go
- name: Build Test
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/external_e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#- name: Set up Go 1.x
##uses: actions/setup-go@v5
#with:
#go-version: '1.23.1'
#go-version-file: 'go.mod'
#id: go
#- name: Install CA and curl
#run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/integration_test_aks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#- name: Set up Go 1.x
#uses: actions/setup-go@v5
#with:
#go-version: '1.23.1'
#go-version-file: 'go.mod'
#id: go
#- name: Build Code
#run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Set up Go 1.x
uses: actions/setup-go@v5
with:
go-version: '1.23.1'
go-version-file: 'go.mod'
id: go

- name: Run unit test
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sanity_test_local.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Set up Go 1.x
uses: actions/setup-go@v5
with:
go-version: '1.23.1'
go-version-file: 'go.mod'
id: go
- name: Run Sanity Test
run: make sanity-test-local
2 changes: 1 addition & 1 deletion .github/workflows/static.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
uses: actions/checkout@master
- uses: actions/setup-go@v5
with:
go-version: '1.23.1'
go-version-file: 'go.mod'
- name: Run linter
uses: golangci/golangci-lint-action@v6
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/trivy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:

- uses: actions/setup-go@v5
with:
go-version: '1.23.1'
go-version-file: 'go.mod'

- name: Build an image from Dockerfile
run: |
Expand Down
9 changes: 3 additions & 6 deletions .github/workflows/windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,15 @@ name: Windows Tests

jobs:
build:
strategy:
matrix:
go-versions: [1.17.x]
platform: [windows-latest]
runs-on: ${{ matrix.platform }}
name: Build
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
go-version-file: 'go.mod'
- name: Build Test
run: |
make azurelustre-windows
Expand Down

0 comments on commit 92de037

Please sign in to comment.