File tree Expand file tree Collapse file tree 3 files changed +48
-3
lines changed Expand file tree Collapse file tree 3 files changed +48
-3
lines changed Original file line number Diff line number Diff line change
1
+ name : Build, test and publish
2
+
3
+ on :
4
+ push :
5
+ branches : [ master ]
6
+ pull_request :
7
+ branches : [ master ]
8
+
9
+ env :
10
+ config : Release
11
+
12
+ jobs :
13
+ build-test-publish :
14
+ runs-on : windows-latest
15
+ steps :
16
+ - uses : actions/checkout@v2
17
+ - name : Setup .NET Core and GitHub Packages
18
+ uses : actions/setup-dotnet@v1
19
+ with :
20
+ dotnet-version : 3.1.101
21
+ source-url : https://nuget.pkg.github.com/octokit/index.json
22
+ env :
23
+ NUGET_AUTH_TOKEN : ${{secrets.GITHUB_TOKEN}}
24
+ - name : Setup NuGet
25
+ uses : nuget/setup-nuget@v1
26
+ with :
27
+ nuget-version : ' 5.x'
28
+
29
+ - name : Build using .NET Core
30
+ run : dotnet build Octokit.GraphQL.sln -c ${{ env.config }}
31
+
32
+ - name : Run Octokit.GraphQL.UnitTests
33
+ 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
34
+ - name : Run Octokit.GraphQL.Core.UnitTests
35
+ 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
36
+ - name : Run Octokit.GraphQL.Core.Generation.UnitTests
37
+ 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
38
+
39
+ - name : Create NuGet package
40
+ run : nuget pack
41
+
42
+ - name : Publish to GitHub Packages
43
+ if : github.ref == 'refs/heads/master'
44
+ run : dotnet nuget push *.nupkg
Original file line number Diff line number Diff line change 5
5
<version >0.1.4-beta</version >
6
6
<authors >GitHub</authors >
7
7
<owners >GitHub</owners >
8
+ <repository type =" git" url =" https://github.com/octokit/octokit.graphql.net" />
8
9
<licenseUrl >https://github.com/grokys/octokit.graphql/blob/master/LICENSE.txt</licenseUrl >
9
10
<projectUrl >https://github.com/grokys/octokit.graphql</projectUrl >
10
11
<iconUrl >https://f.cloud.github.com/assets/19977/1441274/160fba8c-41a9-11e3-831d-61d88fa886f4.png</iconUrl >
22
23
<file src =" Octokit.GraphQL\bin\Release\netstandard1.1\Octokit.GraphQL.Core.dll" target =" lib\netstandard1.1" />
23
24
<file src =" Octokit.GraphQL\bin\Release\netstandard1.1\Octokit.GraphQL.Core.xml" target =" lib\netstandard1.1" />
24
25
</files >
25
- </package >
26
+ </package >
Original file line number Diff line number Diff line change 1
1
<Project >
2
2
<PropertyGroup >
3
- <Version >0.1.4 </Version >
3
+ <Version >0.1.5 </Version >
4
4
<VersionSuffix >beta</VersionSuffix >
5
5
</PropertyGroup >
6
- </Project >
6
+ </Project >
You can’t perform that action at this time.
0 commit comments