Skip to content

Commit f81b7ed

Browse files
committed
Merge branch 'master' into develop
# Conflicts: # Directory.Build.props # Tests.props # samples/Samples.Server/Samples.Server.csproj # src/All/All.csproj # src/Core/Core.csproj # src/Transports.AspNetCore.NewtonsoftJson/Transports.AspNetCore.NewtonsoftJson.csproj # src/Transports.AspNetCore.SystemTextJson/Transports.AspNetCore.SystemTextJson.csproj # src/Transports.Subscriptions.Abstractions/Transports.Subscriptions.Abstractions.csproj
2 parents 2ce4c6a + 7017816 commit f81b7ed

File tree

89 files changed

+1255
-239
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+1255
-239
lines changed

.github/codecov.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# https://docs.codecov.com/docs/codecov-yaml
2+
comment:
3+
behavior: new

.github/dependabot.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
version: 2
22
updates:
3-
- package-ecosystem: nuget
3+
- package-ecosystem: "nuget"
44
directory: "/"
55
schedule:
6-
interval: daily
7-
time: '02:00'
8-
open-pull-requests-limit: 10
6+
interval: "daily"
7+
- package-ecosystem: "github-actions"
8+
directory: "/"
9+
schedule:
10+
interval: "daily"

.github/labeler.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
test:
2-
- tests/**/*
1+
test: ['tests/**/*', '!tests/ApiApprovalTests/**/*.txt']
32

43
CI:
54
- .github/workflows/**/*
5+
- .github/dependabot.yml
6+
- .github/labeler.yml
7+
- .github/codecov.yml
68

79
code style:
810
- .editorconfig

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ jobs:
1717
runs-on: ubuntu-latest
1818
steps:
1919
- uses: actions/checkout@v2
20-
- name: Setup .NET Core 5.0 SDK
20+
- name: Setup .NET Core SDK
2121
uses: actions/setup-dotnet@v1
2222
with:
23-
dotnet-version: '5.0.x'
23+
dotnet-version: "6.0.x"
2424
source-url: https://nuget.pkg.github.com/graphql-dotnet/index.json
2525
env:
2626
NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

.github/workflows/codeql-analysis.yml

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# https://github.com/github/codeql
2+
# https://github.com/github/codeql-action
13
name: CodeQL analysis
24

35
on:
@@ -9,12 +11,27 @@ on:
911
jobs:
1012
analyze:
1113
runs-on: ubuntu-latest
14+
1215
steps:
13-
- uses: actions/checkout@v2
16+
- name: Checkout source
17+
uses: actions/checkout@v2
18+
19+
- name: Setup .NET Core SDK
20+
uses: actions/setup-dotnet@v1
1421
with:
15-
fetch-depth: 2
16-
- uses: github/codeql-action/init@v1
22+
dotnet-version: "6.0.x"
23+
24+
- name: Initialize CodeQL
25+
uses: github/codeql-action/init@v1
1726
with:
27+
queries: security-and-quality
1828
languages: csharp
19-
- uses: github/codeql-action/autobuild@v1
20-
- uses: github/codeql-action/analyze@v1
29+
30+
- name: Install dependencies
31+
run: dotnet restore
32+
33+
- name: Build solution
34+
run: dotnet build --no-restore
35+
36+
- name: Perform CodeQL Analysis
37+
uses: github/codeql-action/analyze@v1

.github/workflows/publish.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ jobs:
2727
version="${github_ref:10}"
2828
echo version=$version
2929
echo "version=$version" >> $GITHUB_ENV
30-
- name: Setup .NET Core 5.0 SDK
30+
- name: Setup .NET Core SDK
3131
uses: actions/setup-dotnet@v1
3232
with:
33-
dotnet-version: '5.0.x'
33+
dotnet-version: "6.0.x"
3434
source-url: https://api.nuget.org/v3/index.json
3535
env:
3636
NUGET_AUTH_TOKEN: ${{secrets.NUGET_AUTH_TOKEN}}
@@ -49,7 +49,7 @@ jobs:
4949
- name: Publish Nuget packages to Nuget registry
5050
run: dotnet nuget push "out/*" -k ${{secrets.NUGET_AUTH_TOKEN}}
5151
- name: Upload Nuget packages as release artifacts
52-
uses: actions/github-script@v2
52+
uses: actions/github-script@v5
5353
with:
5454
github-token: ${{secrets.GITHUB_TOKEN}}
5555
script: |
@@ -58,7 +58,7 @@ jobs:
5858
const { repo: { owner, repo }, sha } = context;
5959
for (let file of await fs.readdir('out')) {
6060
console.log('uploading', file);
61-
await github.repos.uploadReleaseAsset({
61+
await github.rest.repos.uploadReleaseAsset({
6262
owner,
6363
repo,
6464
release_id: ${{ github.event.release.id }},

.github/workflows/test.yml

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,24 @@ on:
77
- develop
88
paths:
99
- src/**
10+
- tests/**
11+
- samples/**
1012
- .github/workflows/**
13+
- "*.props"
14+
- "*.targets"
15+
- "*.sln"
1116
# Upload code coverage results when PRs are merged
1217
push:
1318
branches:
1419
- master
1520
- develop
1621
paths:
1722
- src/**
23+
- tests/**
24+
- samples/**
1825
- .github/workflows/**
26+
- "*.props"
27+
- "*.targets"
1928

2029
env:
2130
DOTNET_NOLOGO: true
@@ -31,17 +40,13 @@ jobs:
3140
steps:
3241
- name: Checkout source
3342
uses: actions/checkout@v2
34-
- name: Setup .NET Core 3.1 SDK
43+
- name: Setup .NET Core SDK
3544
uses: actions/setup-dotnet@v1
3645
with:
37-
dotnet-version: '3.1.x'
38-
source-url: https://nuget.pkg.github.com/graphql-dotnet/index.json
39-
env:
40-
NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
41-
- name: Setup .NET Core 5.0 SDK
42-
uses: actions/setup-dotnet@v1
43-
with:
44-
dotnet-version: '5.0.x'
46+
dotnet-version: |
47+
3.1.x
48+
5.0.x
49+
6.0.x
4550
source-url: https://nuget.pkg.github.com/graphql-dotnet/index.json
4651
env:
4752
NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
@@ -50,9 +55,9 @@ jobs:
5055
- name: Check formatting
5156
if: ${{ startsWith(matrix.os, 'ubuntu') }}
5257
run: |
53-
dotnet tool install -g dotnet-format --version 6.0.* --add-source https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json
54-
dotnet format --check --fix-whitespace || (echo "Run 'dotnet format' to fix formatting issues" && exit 1)
55-
dotnet format --check -v diag --fix-style warn --fix-analyzers warn || (echo "Run 'dotnet format' to fix formatting issues" && exit 1)
58+
dotnet tool install -g dotnet-format --version 6.0.243104 --add-source https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json
59+
dotnet format --no-restore --verify-no-changes -v diag --severity warn whitespace || (echo "Run 'dotnet format' to fix whitespace issues" && exit 1)
60+
dotnet format --no-restore --verify-no-changes -v diag --severity warn analyzers || (echo "Run 'dotnet format' to fix analyzers issues" && exit 1)
5661
- name: Build solution [Release]
5762
run: dotnet build --no-restore -c Release
5863
- name: Build solution [Debug]
@@ -61,9 +66,9 @@ jobs:
6166
run: dotnet test --no-restore --no-build -p:CollectCoverage=true
6267
- name: Upload coverage to codecov
6368
if: ${{ startsWith(matrix.os, 'ubuntu') }}
64-
uses: codecov/codecov-action@v1.2.1
69+
uses: codecov/codecov-action@v2.1.0
6570
with:
66-
files: .coverage/GraphQL.Server.Authorization.AspNetCore.Tests/coverage.net5.opencover.xml,.coverage/GraphQL.Server.Samples.Server.Tests/coverage.netcoreapp3.1.opencover.xml,.coverage/GraphQL.Server.Transports.Subscriptions.Abstractions.Tests/coverage.net5.opencover.xml,.coverage/GraphQL.Server.Transports.Subscriptions.WebSockets.Tests/coverage.net5.opencover.xml
71+
files: .coverage/GraphQL.Server.Authorization.AspNetCore.Tests/coverage.net5.opencover.xml,.coverage/GraphQL.Server.Samples.Server.Tests/coverage.netcoreapp3.1.opencover.xml,.coverage/GraphQL.Server.Transports.Subscriptions.Abstractions.Tests/coverage.net5.opencover.xml,.coverage/GraphQL.Server.Transports.Subscriptions.WebSockets.Tests/coverage.net5.opencover.xml,.coverage/GraphQL.Server.Transports.AspNetCore.Tests/coverage.net5.opencover.xml
6772

6873
buildcheck:
6974
needs:

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,5 @@
77

88
[Oo]bj/
99
[Bb]in/
10+
11+
*.received.txt

Directory.Build.props

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,17 @@
2020
<EmbedUntrackedSources>true</EmbedUntrackedSources>
2121
<EnableNETAnalyzers>true</EnableNETAnalyzers>
2222
<NoWarn>$(NoWarn);1591</NoWarn> <!--TODO: temporary solution-->
23+
<PackageReadmeFile Condition="'$(IsPackable)' == 'true'">README.md</PackageReadmeFile>
2324

2425
<AssemblyName>GraphQL.Server.$(MSBuildProjectName)</AssemblyName>
2526
<RootNamespace>GraphQL.Server.$(MSBuildProjectName)</RootNamespace>
2627
<PackageId>GraphQL.Server.$(MSBuildProjectName)</PackageId>
2728
</PropertyGroup>
2829

29-
<ItemGroup>
30-
<None Include="..\..\assets\logo.64x64.png" Pack="true" PackagePath="\" Condition="'$(IsPackable)' == 'true'" />
31-
</ItemGroup>
32-
33-
<ItemGroup>
34-
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All" Condition="'$(IsPackable)' == 'true'"/>
30+
<ItemGroup Condition="'$(IsPackable)' == 'true'">
31+
<None Include="..\..\assets\logo.64x64.png" Pack="true" PackagePath="\" />
32+
<None Include="..\..\README.md" Pack="true" PackagePath="\" />
33+
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All" />
3534
</ItemGroup>
3635

3736
</Project>

GraphQL.Server.sln

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
3-
# Visual Studio Version 16
4-
VisualStudioVersion = 16.0.29411.108
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.0.31919.166
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Transports.Subscriptions.WebSockets", "src\Transports.Subscriptions.WebSockets\Transports.Subscriptions.WebSockets.csproj", "{4DF1CB8E-30AA-4281-9056-D49FDBF4C496}"
77
EndProject
@@ -60,6 +60,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Benchmarks", "src\Benchmark
6060
EndProject
6161
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".github", ".github", "{592C7A03-4F0C-40C2-86F9-C7A4E03504A7}"
6262
ProjectSection(SolutionItems) = preProject
63+
.github\codecov.yml = .github\codecov.yml
6364
.github\dependabot.yml = .github\dependabot.yml
6465
.github\labeler.yml = .github\labeler.yml
6566
EndProjectSection
@@ -78,6 +79,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ApiApprovalTests", "tests\A
7879
EndProject
7980
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "All", "src\All\All.csproj", "{B39BC064-B96A-442D-89A0-79B750F88ADD}"
8081
EndProject
82+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Transports.AspNetCore.Tests", "tests\Transports.AspNetCore.Tests\Transports.AspNetCore.Tests.csproj", "{1857A25B-C4A3-4332-9077-3F2516AC6059}"
83+
EndProject
8184
Global
8285
GlobalSection(SolutionConfigurationPlatforms) = preSolution
8386
Debug|Any CPU = Debug|Any CPU
@@ -164,6 +167,10 @@ Global
164167
{B39BC064-B96A-442D-89A0-79B750F88ADD}.Debug|Any CPU.Build.0 = Debug|Any CPU
165168
{B39BC064-B96A-442D-89A0-79B750F88ADD}.Release|Any CPU.ActiveCfg = Release|Any CPU
166169
{B39BC064-B96A-442D-89A0-79B750F88ADD}.Release|Any CPU.Build.0 = Release|Any CPU
170+
{1857A25B-C4A3-4332-9077-3F2516AC6059}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
171+
{1857A25B-C4A3-4332-9077-3F2516AC6059}.Debug|Any CPU.Build.0 = Debug|Any CPU
172+
{1857A25B-C4A3-4332-9077-3F2516AC6059}.Release|Any CPU.ActiveCfg = Release|Any CPU
173+
{1857A25B-C4A3-4332-9077-3F2516AC6059}.Release|Any CPU.Build.0 = Release|Any CPU
167174
EndGlobalSection
168175
GlobalSection(SolutionProperties) = preSolution
169176
HideSolutionNode = FALSE
@@ -184,6 +191,7 @@ Global
184191
{C1FCE2C8-F6EF-48DA-ADD8-9159516D03DA} = {BBD07745-C962-4D2D-B302-6DA1BCC2FF43}
185192
{17945A3F-4C80-43B3-BBD7-6FE0EA107799} = {592C7A03-4F0C-40C2-86F9-C7A4E03504A7}
186193
{9F1A96BC-FF87-427F-8284-5A0670CA596C} = {BBD07745-C962-4D2D-B302-6DA1BCC2FF43}
194+
{1857A25B-C4A3-4332-9077-3F2516AC6059} = {BBD07745-C962-4D2D-B302-6DA1BCC2FF43}
187195
EndGlobalSection
188196
GlobalSection(ExtensibilityGlobals) = postSolution
189197
SolutionGuid = {3FC7FA59-E938-453C-8C4A-9D5635A9489A}

0 commit comments

Comments
 (0)