Skip to content

Commit

Permalink
Azure: Use versions.yaml to read go version in e2e test
Browse files Browse the repository at this point in the history
Use versions.yaml to read go version in e2e test

Fixes: #1496
Signed-off-by: Kartik Joshi <[email protected]>
  • Loading branch information
kartikjoshi21 committed Oct 25, 2023
1 parent 8d6fca1 commit 4f2375b
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions .github/workflows/azure-e2e-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,13 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Extract go version number
run: echo "GO_VERSION=$(yq -e '.tools.golang' versions.yaml)" >> "$GITHUB_ENV"

- name: Set up Go environment
uses: actions/setup-go@v4
with:
go-version: '1.20'
go-version: ${{ env.GO_VERSION }}
cache-dependency-path: go.sum

- uses: azure/login@v1
Expand Down Expand Up @@ -97,10 +100,13 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Extract go version number
run: echo "GO_VERSION=$(yq -e '.tools.golang' versions.yaml)" >> "$GITHUB_ENV"

- name: Set up Go environment
uses: actions/setup-go@v4
with:
go-version: '1.20'
go-version: ${{ env.GO_VERSION }}

- name: Create provisioner file
env:
Expand Down Expand Up @@ -160,10 +166,13 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Extract go version number
run: echo "GO_VERSION=$(yq -e '.tools.golang' versions.yaml)" >> "$GITHUB_ENV"

- name: Set up Go environment
uses: actions/setup-go@v4
with:
go-version: '1.20'
go-version: ${{ env.GO_VERSION }}

- name: Restore the configuration created before
uses: actions/download-artifact@v3
Expand Down Expand Up @@ -199,10 +208,13 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Extract go version number
run: echo "GO_VERSION=$(yq -e '.tools.golang' versions.yaml)" >> "$GITHUB_ENV"

- name: Set up Go environment
uses: actions/setup-go@v4
with:
go-version: '1.20'
go-version: ${{ env.GO_VERSION }}

- name: Restore the configuration created before
uses: actions/download-artifact@v3
Expand Down

0 comments on commit 4f2375b

Please sign in to comment.