Merge pull request #113 from cisagov/improvement/update_go_configuration

Update Go installation in the `build.yml` workflow
pull/529/head^2
Nick 1 year ago committed by GitHub
commit ec83308c16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 12
      .github/workflows/build.yml

@ -26,14 +26,10 @@ jobs:
python-version: "3.10" python-version: "3.10"
# We need the Go version and Go cache location for the actions/cache step, # We need the Go version and Go cache location for the actions/cache step,
# so the Go installation must happen before that. # so the Go installation must happen before that.
- uses: actions/setup-go@v2 - id: setup-go
uses: actions/setup-go@v3
with: with:
go-version: "1.16" go-version: "1.19"
- name: Store installed Go version
id: go-version
run: |
echo "::set-output name=version::"\
"$(go version | sed 's/^go version go\([0-9.]\+\) .*/\1/')"
- name: Lookup Go cache directory - name: Lookup Go cache directory
id: go-cache id: go-cache
run: | run: |
@ -42,7 +38,7 @@ jobs:
env: env:
BASE_CACHE_KEY: "${{ github.job }}-${{ runner.os }}-\ BASE_CACHE_KEY: "${{ github.job }}-${{ runner.os }}-\
py${{ steps.setup-python.outputs.python-version }}-\ py${{ steps.setup-python.outputs.python-version }}-\
go${{ steps.go-version.outputs.version }}-\ go${{ steps.setup-go.outputs.go-version }}-\
packer${{ steps.setup-env.outputs.packer-version }}-\ packer${{ steps.setup-env.outputs.packer-version }}-\
tf${{ steps.setup-env.outputs.terraform-version }}-" tf${{ steps.setup-env.outputs.terraform-version }}-"
with: with:

Loading…
Cancel
Save