Skip to content

Commit

Permalink
Use go version set in go.mod for workflows
Browse files Browse the repository at this point in the history
Signed-off-by: Marcelo Guerrero <marguerr@redhat.com>
  • Loading branch information
mlguerrero12 committed Oct 15, 2024
1 parent d34e237 commit 28d03f6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,18 @@ jobs:
build:
strategy:
matrix:
go-version: [1.21.x]
#goarch: [386, amd64, arm, ppc64le, arm64]
goarch: [amd64, arm64]
os: [ubuntu-latest] #, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Install Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}

- name: Checkout code
uses: actions/checkout@v4
go-version-file: go.mod

- name: Install kubebuilder tools
run: ./hack/install-kubebuilder-tools.sh
Expand Down
17 changes: 8 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,16 @@ jobs:
test:
strategy:
matrix:
go-version: [1.21.x]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Install Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}

- name: Checkout code
uses: actions/checkout@v4
go-version-file: go.mod

- name: Get all changed files excluding docs and README
id: changed-files
Expand Down Expand Up @@ -71,13 +70,13 @@ jobs:
env:
NUMBER_OF_COMPUTE_NODES: 5
steps:
- name: Checkout code into the Go module directory
uses: actions/checkout@v4

- name: Set up Go version
uses: actions/setup-go@v5
with:
go-version: 1.21.x

- name: Checkout code into the Go module directory
uses: actions/checkout@v4
go-version-file: go.mod

- name: Get all changed files excluding docs and README
id: changed-files
Expand Down

0 comments on commit 28d03f6

Please sign in to comment.