mirror of
https://gitea.com/actions/setup-go.git
synced 2024-11-24 21:15:38 +01:00
Merge pull request #210 from vsafonkin/v-vsafonkin/update-readme-v3
Update README to v3
This commit is contained in:
commit
8e9a229830
15
README.md
15
README.md
@ -11,12 +11,11 @@ This action sets up a go environment for use in actions by:
|
||||
- optionally downloading and caching a version of Go by version and adding to PATH
|
||||
- registering problem matchers for error output
|
||||
|
||||
# V2
|
||||
# V3
|
||||
|
||||
The V2 offers:
|
||||
The V3 offers:
|
||||
- Adds GOBIN to the PATH
|
||||
- Proxy Support
|
||||
- `stable` input
|
||||
- Check latest version
|
||||
- Bug Fixes (including issues around version matching and semver)
|
||||
|
||||
@ -26,7 +25,7 @@ Matching by [semver spec](https://github.com/npm/node-semver):
|
||||
```yaml
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-go@v2
|
||||
- uses: actions/setup-go@v3
|
||||
with:
|
||||
go-version: '^1.13.1' # The Go version to download (if necessary) and use.
|
||||
- run: go version
|
||||
@ -36,7 +35,7 @@ Matching an unstable pre-release:
|
||||
```yaml
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-go@v2
|
||||
- uses: actions/setup-go@v3
|
||||
with:
|
||||
stable: 'false'
|
||||
go-version: '1.14.0-rc1' # The Go version to download (if necessary) and use.
|
||||
@ -51,7 +50,7 @@ See [action.yml](action.yml)
|
||||
```yaml
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-go@v2
|
||||
- uses: actions/setup-go@v3
|
||||
with:
|
||||
go-version: '1.16.1' # The Go version to download (if necessary) and use.
|
||||
- run: go run hello.go
|
||||
@ -69,7 +68,7 @@ If `check-latest` is set to `true`, the action first checks if the cached versio
|
||||
```yaml
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-go@v2
|
||||
- uses: actions/setup-go@v3
|
||||
with:
|
||||
go-version: '1.14'
|
||||
check-latest: true
|
||||
@ -88,7 +87,7 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Setup go
|
||||
uses: actions/setup-go@v2
|
||||
uses: actions/setup-go@v3
|
||||
with:
|
||||
go-version: ${{ matrix.go }}
|
||||
- run: go run hello.go
|
||||
|
Loading…
Reference in New Issue
Block a user