Commit 6701f24 1 parent b15189f commit 6701f24 Copy full SHA for 6701f24
File tree 1 file changed +50
-0
lines changed
1 file changed +50
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : .NET Core
2
+
3
+ on :
4
+ push :
5
+ branches : [ master ]
6
+ pull_request :
7
+ branches : [ master ]
8
+
9
+ jobs :
10
+ test :
11
+ strategy :
12
+ matrix :
13
+ os : [ubuntu-latest, macos-latest, windows-latest]
14
+
15
+ runs-on : ${{ matrix.os }}
16
+
17
+ steps :
18
+ - uses : actions/checkout@v2
19
+ - name : Setup .NET Core 2.1
20
+ uses : actions/setup-dotnet@v1
21
+ with :
22
+ dotnet-version : ' 2.1.x'
23
+ - name : Setup .NET Core 3.1
24
+ uses : actions/setup-dotnet@v1
25
+ with :
26
+ dotnet-version : ' 3.1.x'
27
+ - name : Setup .NET 5.0
28
+ uses : actions/setup-dotnet@v1
29
+ with :
30
+ dotnet-version : ' 5.0.x'
31
+ - name : Fix Windows VM bug
32
+ shell : bash
33
+ if : matrix.os == 'windows-latest'
34
+ run : |
35
+ dotnet nuget locals all --clear
36
+ - name : Restore
37
+ run : dotnet restore
38
+ - name : Build
39
+ run : dotnet build --configuration Release --no-restore
40
+ - name : Test
41
+ run : dotnet test --no-restore --verbosity normal
42
+ - name : Pack
43
+ if : matrix.os == 'ubuntu-latest'
44
+ run : dotnet pack -c Release
45
+ - name : Publish artifact
46
+ if : matrix.os == 'ubuntu-latest'
47
+ uses : actions/upload-artifact@v2
48
+ with :
49
+ name : nupkg
50
+ path : ' **/*.nupkg'
You can’t perform that action at this time.
0 commit comments