mirror of
https://github.com/actions/setup-go.git
synced 2025-04-23 17:40:50 +00:00
docs: Update docs and action.yml
This commit is contained in:
parent
cb7e1d2c4a
commit
3c24beb7c8
2 changed files with 3 additions and 2 deletions
|
@ -181,7 +181,7 @@ jobs:
|
||||||
- uses: actions/setup-go@v4
|
- uses: actions/setup-go@v4
|
||||||
with:
|
with:
|
||||||
go-version: "1.20"
|
go-version: "1.20"
|
||||||
cache-key-prefix: build-cache-
|
cache-key-prefix: build-cache
|
||||||
- run: go build
|
- run: go build
|
||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -190,7 +190,7 @@ jobs:
|
||||||
- uses: actions/setup-go@v4
|
- uses: actions/setup-go@v4
|
||||||
with:
|
with:
|
||||||
go-version: "1.20"
|
go-version: "1.20"
|
||||||
cache-key-prefix: test-cache-
|
cache-key-prefix: test-cache
|
||||||
- run: go test ./...
|
- run: go test ./...
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -19,6 +19,7 @@ inputs:
|
||||||
description: 'Used to specify the path to a dependency file - go.sum'
|
description: 'Used to specify the path to a dependency file - go.sum'
|
||||||
cache-key-prefix:
|
cache-key-prefix:
|
||||||
description: 'A prefix to add to the cache key. Useful if you have multiple concurrent jobs that need different caches.'
|
description: 'A prefix to add to the cache key. Useful if you have multiple concurrent jobs that need different caches.'
|
||||||
|
default: 'setup-go'
|
||||||
architecture:
|
architecture:
|
||||||
description: 'Target architecture for Go to use. Examples: x86, x64. Will use system architecture by default.'
|
description: 'Target architecture for Go to use. Examples: x86, x64. Will use system architecture by default.'
|
||||||
outputs:
|
outputs:
|
||||||
|
|
Loading…
Add table
Reference in a new issue