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 12, 2023
1 parent b4ec03d commit 13f4b0a
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/azure-e2e-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,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 @@ -93,10 +96,14 @@ 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

0 comments on commit 13f4b0a

Please sign in to comment.