Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
3459f3f
Add GitHub workflows
Shane32 Sep 16, 2020
6c49f2b
Run tests for any PR, not just changes to src
Shane32 Sep 16, 2020
e78e6eb
Always build artifacts; why not?
Shane32 Sep 16, 2020
3a2089d
Update TestStartup.cs
Shane32 Sep 16, 2020
621afbd
Add SourceLink support
Shane32 Sep 17, 2020
4c9ac4b
Update Directory.Build.props
Shane32 Sep 17, 2020
9fc40a2
Test build
Shane32 Sep 17, 2020
1cb0935
Update build.yml
Shane32 Sep 17, 2020
27efd78
Update publish.yml
Shane32 Sep 17, 2020
bcf0558
Fix naming of xml files
Shane32 Sep 17, 2020
2c7f88e
Update Directory.Build.props
Shane32 Sep 17, 2020
bc15956
Update build.yml
Shane32 Sep 17, 2020
309f4fe
Update workflow files
Shane32 Oct 26, 2020
14a5648
Remove extra files
Shane32 Oct 26, 2020
738e73d
Restore appveyor
Shane32 Oct 26, 2020
d95fa8a
Merge branch 'develop' into github-packages
Shane32 Oct 26, 2020
acf6028
Delete appveyor.yml
Shane32 Oct 26, 2020
a5b49a8
Update Directory.Build.props
Shane32 Oct 26, 2020
f3ac594
Apply suggestions from code review
Shane32 Oct 26, 2020
d278168
Update .github/workflows/build.yml
Shane32 Oct 26, 2020
fcd51f1
Update .github/workflows/publish.yml
Shane32 Oct 26, 2020
da5ef7a
Update .github/workflows/publish.yml
Shane32 Oct 26, 2020
04ee79c
Update .github/workflows/publish.yml
Shane32 Oct 26, 2020
a6d93c9
Update labeler
Shane32 Oct 26, 2020
76d3a4a
Update .github/workflows/build.yml
Shane32 Oct 26, 2020
732e7b0
Update .github/workflows/build.yml
Shane32 Oct 26, 2020
816299b
Update Directory.Build.props
Shane32 Oct 26, 2020
3d5c36f
Update Directory.Build.props
Shane32 Oct 26, 2020
6334e2c
Update Directory.Build.props
Shane32 Oct 26, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version: 2
updates:
- package-ecosystem: nuget
directory: "/"
schedule:
interval: daily
time: '02:00'
open-pull-requests-limit: 10
11 changes: 11 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
"test":
- Tests/**/*

"CI":
- .github/workflows/**/*

"code style":
- .editorconfig

"performance":
- src/Benchmarks/**/*
39 changes: 39 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Build artifacts

# ==== NOTE: do not rename this yml file or the run_number will be reset ====

on:
push:
branches:
- master
- develop

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use .NET Core 3.1 SDK
uses: actions/setup-dotnet@v1
with:
dotnet-version: '3.1.x'
source-url: https://nuget.pkg.github.com/graphql-dotnet/index.json
env:
NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Install dependencies
run: dotnet restore
env:
DOTNET_NOLOGO: true
DOTNET_CLI_TELEMETRY_OPTOUT: true
- name: Build solution [Release]
run: dotnet build --no-restore -c Release -p:NoWarn=CS1591 -p:VersionSuffix=$GITHUB_RUN_NUMBER
- name: Pack solution [Release]
run: dotnet pack --no-restore --no-build -c Release -p:VersionSuffix=$GITHUB_RUN_NUMBER -o out
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: Nuget packages
path: |
out/*
- name: Publish Nuget packages to GitHub registry
run: dotnet nuget push "out/*" -k ${{secrets.GITHUB_TOKEN}}
17 changes: 17 additions & 0 deletions .github/workflows/label.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# This workflow will triage pull requests and apply a label based on the
# paths that are modified in the pull request.
#
# To use this workflow, you will need to set up a .github/labeler.yml
# file with configuration. For more information, see:
# https://github.com/actions/labeler/blob/master/README.md

name: Labeler
on: [pull_request]

jobs:
label:
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v2
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
49 changes: 49 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Publish release

on:
release:
types:
- published

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Check github.ref starts with 'refs/tags/'
if: ${{ !startsWith(github.ref, 'refs/tags/') }}
run: |
echo Error! github.ref does not start with 'refs/tags'
echo github.ref: ${{ github.ref }}
exit 1
- name: Set version number environment variable
env:
github_ref: ${{ github.ref }}
run: |
version="${github_ref:10}"
echo version=$version
echo "version=$version" >> $GITHUB_ENV
- name: Use .NET Core 3.1 SDK
uses: actions/setup-dotnet@v1
with:
dotnet-version: '3.1.x'
source-url: https://api.nuget.org/v3/index.json
env:
NUGET_AUTH_TOKEN: ${{secrets.NUGET_AUTH_TOKEN}}
- name: Install dependencies
run: dotnet restore
env:
DOTNET_NOLOGO: true
DOTNET_CLI_TELEMETRY_OPTOUT: true
- name: Build solution [Release]
run: dotnet build --no-restore -c Release -p:NoWarn=CS1591 -p:Version=$version
- name: Pack solution [Release]
run: dotnet pack --no-restore --no-build -c Release -p:Version=$version -o out
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: Nuget packages
path: |
out/*
- name: Publish Nuget packages to Nuget registry
run: dotnet nuget push "out/*" -k ${{secrets.NUGET_AUTH_TOKEN}}
41 changes: 41 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Run code tests

on:
pull_request:
branches:
- master
- develop

jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
- windows-latest
steps:
- name: Checkout source
uses: actions/checkout@v2
- name: Use .NET Core 2.2 SDK
uses: actions/setup-dotnet@v1
with:
dotnet-version: '2.2.x'
- name: Use .NET Core 3.1 LTS SDK
uses: actions/setup-dotnet@v1
with:
dotnet-version: '3.1.x'
source-url: https://nuget.pkg.github.com/graphql-dotnet/index.json
env:
NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Install dependencies
run: dotnet restore
env:
DOTNET_NOLOGO: true
DOTNET_CLI_TELEMETRY_OPTOUT: true
- name: Build solution [Release]
run: dotnet build --no-restore -c Release -p:NoWarn=CS1591
- name: Build solution [Debug]
run: dotnet build --no-restore -p:NoWarn=CS1591
- name: Test solution [Debug]
run: dotnet test --no-restore --no-build
20 changes: 20 additions & 0 deletions .github/workflows/wipcheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Check if PR title contains [WIP]

on:
pull_request:
types:
- opened # when PR is opened
- edited # when PR is edited
- synchronize # when code is added
- reopened # when a closed PR is reopened

jobs:
check-title:
runs-on: ubuntu-latest

steps:
- name: Fail build if pull request title contains [WIP]
if: ${{ contains(github.event.pull_request.title, '[WIP]') }} # This function is case insensitive.
run: |
echo Warning! PR title "${{ github.event.pull_request.title }}" contains [WIP]. Remove [WIP] from the title when PR is ready.
exit 1
17 changes: 14 additions & 3 deletions Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,17 +1,28 @@
<Project>

<PropertyGroup Label="Сommon properties">
<VersionPrefix>4.1.0-preview</VersionPrefix>
<LangVersion>latest</LangVersion>
<PackageProjectUrl>https://github.com/graphql-dotnet/server</PackageProjectUrl>
<RepositoryUrl>https://github.com/graphql-dotnet/server</RepositoryUrl>
<RepositoryType>Git</RepositoryType>
<RepositoryType>git</RepositoryType>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<Copyright>Pekka Heikura</Copyright>
<Authors>Pekka Heikura</Authors>
<Product>graphql-dotnet server</Product>
<Company>graphql-dotnet</Company>
<DocumentationFile>bin\$(Configuration)\$(TargetFramework)\$(MSBuildProjectName).xml</DocumentationFile>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<Deterministic>true</Deterministic>
<!-- https://help.github.com/en/actions/configuring-and-managing-workflows/using-environment-variables -->
<ContinuousIntegrationBuild Condition="'$(GITHUB_ACTIONS)' == 'true'">True</ContinuousIntegrationBuild>

<DebugType>embedded</DebugType>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All" Condition="'$(IsPackable)' == 'true'"/>
</ItemGroup>

<PropertyGroup>
<IsNetCore3OnwardsTarget>$(TargetFramework.StartsWith('netcoreapp3.'))</IsNetCore3OnwardsTarget>
</PropertyGroup>
Expand Down
Empty file removed GitVersion.yml
Empty file.
43 changes: 0 additions & 43 deletions appveyor.yml

This file was deleted.

124 changes: 0 additions & 124 deletions build.cake

This file was deleted.

Loading