File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change 6
6
pull_request :
7
7
branches : [ master ]
8
8
9
+ env :
10
+ config : Release
11
+
9
12
jobs :
10
13
build :
11
14
runs-on : windows-latest
17
20
dotnet-version : 3.1.101
18
21
19
22
- name : Build using .NET Core
20
- run : dotnet build Octokit.GraphQL.sln -c Release
23
+ run : dotnet build Octokit.GraphQL.sln -c ${{ env.config }}
21
24
test :
22
25
needs : [build]
23
26
runs-on : windows-latest
@@ -29,11 +32,11 @@ jobs:
29
32
dotnet-version : 3.1.101
30
33
31
34
- name : Run Octokit.GraphQL.UnitTests
32
- run : dotnet test -c Release --no-build /p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:Exclude="[Octokit.GraphQL]Octokit.GraphQL.*" .\Octokit.GraphQL.UnitTests\Octokit.GraphQL.UnitTests.csproj
35
+ run : dotnet test -c ${{ env.config }} --no-build /p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:Exclude="[Octokit.GraphQL]Octokit.GraphQL.*" .\Octokit.GraphQL.UnitTests\Octokit.GraphQL.UnitTests.csproj
33
36
- name : Run Octokit.GraphQL.Core.UnitTests
34
- run : dotnet test -c Release --no-build /p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:Exclude="[Octokit.GraphQL]Octokit.GraphQL.*" .\Octokit.GraphQL.Core.UnitTests\Octokit.GraphQL.Core.UnitTests.csproj
37
+ run : dotnet test -c ${{ env.config }} --no-build /p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:Exclude="[Octokit.GraphQL]Octokit.GraphQL.*" .\Octokit.GraphQL.Core.UnitTests\Octokit.GraphQL.Core.UnitTests.csproj
35
38
- name : Run Octokit.GraphQL.Core.Generation.UnitTests
36
- run : dotnet test -c Release --no-build /p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:Exclude="[Octokit.GraphQL]Octokit.GraphQL.*" .\Octokit.GraphQL.Core.Generation.UnitTests\Octokit.GraphQL.Core.Generation.UnitTests.csproj
39
+ run : dotnet test -c ${{ env.config }} --no-build /p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:Exclude="[Octokit.GraphQL]Octokit.GraphQL.*" .\Octokit.GraphQL.Core.Generation.UnitTests\Octokit.GraphQL.Core.Generation.UnitTests.csproj
37
40
publish :
38
41
needs : [build,test]
39
42
if : github.ref == 'refs/heads/master'
52
55
with :
53
56
nuget-version : ' 5.x'
54
57
58
+ - name : Build using .NET Core
59
+ run : dotnet build Octokit.GraphQL.sln -c ${{ env.config }}
60
+
55
61
- name : Create NuGet package
56
62
run : nuget pack
57
63
You can’t perform that action at this time.
0 commit comments