Skip to content

Commit

Permalink
Don't hardcode go version (#429)
Browse files Browse the repository at this point in the history
  • Loading branch information
JenGoldstrich authored Jun 20, 2024
1 parent edf2fd2 commit ce7f206
Showing 1 changed file with 20 additions and 6 deletions.
26 changes: 20 additions & 6 deletions .github/workflows/acceptance-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,33 @@ jobs:
echo "available=true" | tee ${GITHUB_OUTPUT}
fi
get-go-version:
runs-on: ubuntu-latest
outputs:
go-version: ${{ steps.get-go-version.outputs.go-version }}
steps:
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- name: 'Determine Go version'
id: get-go-version
run: |
echo "Found Go $(cat .go-version)"
echo "go-version=$(cat .go-version)" >> $GITHUB_OUTPUT
acceptance-tests:
runs-on: ubuntu-latest
needs: [secrets-check]
needs:
- secrets-check
- get-go-version
if: needs.secrets-check.outputs.available == 'true'
steps:
- name: Install Go
- name: Checkout
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4

- name: Set up Go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version: '1.19.5'
go-version: ${{ needs.get-go-version.outputs.go-version }}

- name: Checkout
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4

- name: Setup `terraform`
uses: hashicorp/setup-terraform@v2

Expand Down

0 comments on commit ce7f206

Please sign in to comment.