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: confidential-containers#1496
Signed-off-by: Kartik Joshi <[email protected]>
  • Loading branch information
kartikjoshi21 committed Oct 12, 2023
1 parent b4ec03d commit c121870
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/azure-e2e-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,15 @@ jobs:
steps:
- uses: actions/checkout@v3

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

- run: echo ${{ env.GO_VERSION }}

- 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 +98,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 c121870

Please sign in to comment.