github.com/ava-labs/avalanchego@v1.11.11/.github/actions/setup-go-for-project/action.yml (about)

     1  # This action targets the project default version of setup-go. For
     2  # workers with old NodeJS incompabible with newer versions of
     3  # setup-go, try setup-go-for-project-v3.
     4  #
     5  # Since github actions do not support dynamically configuring the
     6  # versions in a uses statement (e.g. `actions/setup-go@${{ var }}`) it
     7  # is necessary to define an action per version rather than one action
     8  # that can be parameterized.
     9  #
    10  # Must be run after actions/checkout to ensure go.mod is available to
    11  # source the project's go version from.
    12  
    13  name: 'Install Go toolchain with project defaults'
    14  description: 'Install a go toolchain with project defaults'
    15  
    16  runs:
    17    using: composite
    18    steps:
    19      - name: Set the project Go version in the environment
    20        uses: ./.github/actions/set-go-version-in-env
    21      - name: Set up Go
    22        uses: actions/setup-go@v5
    23        with:
    24          go-version: '${{ env.GO_VERSION }}'
    25          check-latest: true