|
1 | | - - name: Setup Go environment |
2 | | - |
3 | | - with: |
4 | | - # The Go version to download (if necessary) and use. Supports semver spec and ranges. Be sure to enclose this option in single quotation marks. |
5 | | - go-version: # optional |
6 | | - # Path to the go.mod, go.work, .go-version, or .tool-versions file. |
7 | | - go-version-file: # optional |
8 | | - # Set this option to true if you want the action to always check for the latest available version that satisfies the version spec |
9 | | - check-latest: # optional |
10 | | - # Used to pull Go distributions from go-versions. Since there's a default, this is typically not supplied by the user. When running this action on github.com, the default value is sufficient. When running on GHES, you can pass a personal access token for github.com if you are experiencing rate limiting. |
11 | | - token: # optional, default is ${{ github.server_url == 'https://github.com' && github.token || '' }} |
12 | | - # Used to specify whether caching is needed. Set to true, if you'd like to enable caching. |
13 | | - cache: # optional, default is true |
14 | | - # Used to specify the path to a dependency file - go.sum |
15 | | - cache-dependency-path: # optional |
16 | | - # Target architecture for Go to use. Examples: x86, x64. Will use system architecture by default. |
17 | | - architecture: # optional |
18 | | - |
| 1 | +steps: |
| 2 | + - name: Setup Go environment |
| 3 | + |
| 4 | + with: |
| 5 | + # The Go version to download (if necessary) and use. Supports semver spec and ranges. Be sure to enclose this option in single quotation marks. |
| 6 | + go-version: # optional |
| 7 | + # Path to the go.mod, go.work, .go-version, or .tool-versions file. |
| 8 | + go-version-file: # optional |
| 9 | + # Set this option to true if you want the action to always check for the latest available version that satisfies the version spec |
| 10 | + check-latest: # optional |
| 11 | + # Used to pull Go distributions from go-versions. Since there's a default, this is typically not supplied by the user. When running this action on github.com, the default value is sufficient. When running on GHES, you can pass a personal access token for github.com if you are experiencing rate limiting. |
| 12 | + token: # optional, default is ${{ github.server_url == 'https://github.com' && github.token || '' }} |
| 13 | + # Used to specify whether caching is needed. Set to true, if you'd like to enable caching. |
| 14 | + cache: # optional, default is true |
| 15 | + # Used to specify the path to a dependency file - go.sum |
| 16 | + cache-dependency-path: # optional |
| 17 | + # Target architecture for Go to use. Examples: x86, x64. Will use system architecture by default. |
| 18 | + architecture: # optional |