Skip to content

Commit 035f3d6

Browse files
author
Danny McCormick
authored
Update README.md
1 parent a0bf923 commit 035f3d6

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-dotnet
1+
# setup-dotnet
22

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

5-
- optionally downloading and caching a version of Dotnet
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 dotnet 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-dotnet@latest
16+
with:
17+
version: 2.2.103 // Version to use.
18+
- run: dotnet build <my project>
19+
```
20+
21+
Matrix Testing:
22+
```yaml
23+
jobs:
24+
build:
25+
strategy:
26+
matrix:
27+
dotnet: [ 2.2.103, 3.5.2, 4.5.1 ]
28+
name: Dotnet ${{ matrix.dotnet }} sample
29+
actions:
30+
- name: Setup dotnet
31+
uses: actions/setup-dotnet@latest
32+
with:
33+
version: ${{ matrix.dotnet }}
34+
- run: dotnet build <my project>
35+
```
836
937
# License
1038

0 commit comments

Comments
 (0)