Skip to content

Commit 5a89fe9

Browse files
authored
Merge branch 'master' into fixes/206-remove-union-hack
2 parents 7c42424 + 9b59a95 commit 5a89fe9

File tree

3 files changed

+48
-3
lines changed

3 files changed

+48
-3
lines changed

.github/workflows/dotnetcore.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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

Octokit.GraphQL.nuspec

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<version>0.1.4-beta</version>
66
<authors>GitHub</authors>
77
<owners>GitHub</owners>
8+
<repository type="git" url="https://github.com/octokit/octokit.graphql.net" />
89
<licenseUrl>https://github.com/grokys/octokit.graphql/blob/master/LICENSE.txt</licenseUrl>
910
<projectUrl>https://github.com/grokys/octokit.graphql</projectUrl>
1011
<iconUrl>https://f.cloud.github.com/assets/19977/1441274/160fba8c-41a9-11e3-831d-61d88fa886f4.png</iconUrl>
@@ -22,4 +23,4 @@
2223
<file src="Octokit.GraphQL\bin\Release\netstandard1.1\Octokit.GraphQL.Core.dll" target="lib\netstandard1.1"/>
2324
<file src="Octokit.GraphQL\bin\Release\netstandard1.1\Octokit.GraphQL.Core.xml" target="lib\netstandard1.1"/>
2425
</files>
25-
</package>
26+
</package>

directory.build.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project>
22
<PropertyGroup>
3-
<Version>0.1.4</Version>
3+
<Version>0.1.5</Version>
44
<VersionSuffix>beta</VersionSuffix>
55
</PropertyGroup>
6-
</Project>
6+
</Project>

0 commit comments

Comments
 (0)