Skip to content

Commit 4135981

Browse files
author
Danny McCormick
authored
Update README.md
1 parent d422472 commit 4135981

File tree

1 file changed

+33
-5
lines changed

1 file changed

+33
-5
lines changed

README.md

Lines changed: 33 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,38 @@
1-
# @actions/setup-go
1+
# setup-go
22

3-
This action sets by Go environment for use in actions by:
3+
This action sets up a go environment for use in actions by:
44

5-
- optionally downloading and caching a version of Go
6-
- registering problem matchers for error output
7-
- TODO: configuring proxy if the runner is configured to use a proxy (coming with private runners)
5+
- optionally downloading and caching a version of go by version and adding to PATH
6+
- registering problem matchers for error output
7+
8+
# Usage
9+
10+
See [action.yml](action.yml)
11+
12+
Basic:
13+
```yaml
14+
actions:
15+
- uses: actions/setup-go@latest
16+
with:
17+
version: 1.9.3 // The Go version to download (if necessary) and use.
18+
- run: go run hello.go
19+
```
20+
21+
Matrix Testing:
22+
```yaml
23+
jobs:
24+
build:
25+
strategy:
26+
matrix:
27+
go: [ 1.8, 1.9.3, 1.10 ]
28+
name: Go ${{ matrix.go }} sample
29+
actions:
30+
- name: Setup go
31+
uses: actions/setup-go@latest
32+
with:
33+
version: ${{ matrix.go }}
34+
- run: go run hello.go
35+
```
836
937
# License
1038

0 commit comments

Comments
 (0)