-
Notifications
You must be signed in to change notification settings - Fork 43
Repo rework #88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Repo rework #88
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
a4e6d9d
Repo rework
sungam3r f812718
add wipcheck
sungam3r 4908a3d
trace
sungam3r 94539fc
hack
sungam3r 77dbbe5
1
sungam3r e4e2955
1
sungam3r 496b1c9
1
sungam3r b75cb4c
1
sungam3r 6c338ec
1
sungam3r 8db550b
add .vscode back
sungam3r 0935979
1
sungam3r c0cd141
1
sungam3r a2e3b96
Update .github/workflows/publish-preview.yml
sungam3r ba6ae38
Update .github/workflows/publish-release.yml
sungam3r 096f529
newline
sungam3r File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
name: Bug report | ||
about: Create a report to help us improve | ||
title: '' | ||
labels: bug | ||
|
||
--- | ||
|
||
**Describe the bug** | ||
A clear and concise description of what the bug is. | ||
|
||
**Expected behavior** | ||
A clear and concise description of what you expected to happen. | ||
|
||
**Screenshots and any additional context** | ||
If applicable, add screenshots or any other context here to help explain your problem. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
name: Feature request | ||
about: Suggest an idea for this project | ||
title: '' | ||
labels: '' | ||
|
||
--- | ||
|
||
**Is your feature request related to a problem? Please describe.** | ||
A clear and concise description of what the problem is. | ||
|
||
**Describe the solution you'd like** | ||
This is optional description of what you want to happen. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
"test": | ||
- src/GraphQLParser.ApiTests/**/* | ||
- src/GraphQLParser.Tests/**/* | ||
|
||
"CI": | ||
- .github/workflows/**/* | ||
|
||
"code style": | ||
- .editorconfig | ||
|
||
"documentation": | ||
- README.md | ||
|
||
"performance": | ||
- src/GraphQLParser.Benchmarks/**/* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: Publish preview to GitHub registry | ||
|
||
# ==== NOTE: do not rename this yml file or the $GITHUB_RUN_NUMBER will be reset ==== | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- develop | ||
paths: | ||
- src/** | ||
- .github/workflows/** | ||
|
||
jobs: | ||
pack: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout source | ||
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 | ||
working-directory: src | ||
run: dotnet restore | ||
env: | ||
DOTNET_NOLOGO: true | ||
DOTNET_CLI_TELEMETRY_OPTOUT: true | ||
- name: Build solution [Release] | ||
working-directory: src | ||
run: dotnet build --no-restore -c Release -p:VersionSuffix=$GITHUB_RUN_NUMBER | ||
- name: Pack solution [Release] | ||
working-directory: src | ||
run: dotnet pack --no-restore -c Release -p:VersionSuffix=$GITHUB_RUN_NUMBER -o out | ||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: Nuget packages | ||
path: | | ||
src/out/* | ||
- name: Publish Nuget packages to GitHub registry | ||
working-directory: src | ||
run: dotnet nuget push "out/*" -k ${{secrets.GITHUB_TOKEN}} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: Publish release to Nuget registry | ||
|
||
on: | ||
release: | ||
types: | ||
- published | ||
|
||
jobs: | ||
publish: | ||
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 release version number | ||
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 | ||
working-directory: src | ||
run: dotnet restore | ||
env: | ||
DOTNET_NOLOGO: true | ||
DOTNET_CLI_TELEMETRY_OPTOUT: true | ||
- name: Build solution [Release] | ||
working-directory: src | ||
run: dotnet build --no-restore -c Release -p:Version=$version | ||
- name: Pack solution [Release] | ||
working-directory: src | ||
run: dotnet pack --no-restore -c Release -p:Version=$version -o out | ||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: Nuget packages | ||
path: | | ||
src/out/* | ||
- name: Publish Nuget packages to Nuget registry | ||
working-directory: src | ||
run: dotnet nuget push "out/*" -k ${{secrets.NUGET_AUTH_TOKEN}} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: Run unit tests | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
- develop | ||
paths: | ||
- src/** | ||
- .github/workflows/** | ||
|
||
jobs: | ||
test: | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, windows-latest] | ||
name: ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Checkout source | ||
uses: actions/checkout@v2 | ||
- name: Use .NET Core 3.1 LTS SDK | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: '3.1.x' | ||
- name: Install dependencies | ||
working-directory: src | ||
run: dotnet restore | ||
env: | ||
DOTNET_NOLOGO: true | ||
DOTNET_CLI_TELEMETRY_OPTOUT: true | ||
- name: Build solution [Release] | ||
working-directory: src | ||
run: dotnet build --no-restore -c Release | ||
- name: Build solution [Debug] | ||
working-directory: src | ||
run: dotnet build --no-restore -c Debug | ||
- name: Test solution [Debug] | ||
working-directory: src | ||
run: dotnet test --no-restore |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,33 @@ | ||
<Project> | ||
|
||
<PropertyGroup> | ||
<VersionPrefix>5.3.3</VersionPrefix> | ||
<Authors>Marek Magdziak</Authors> | ||
<NoWarn>$(NoWarn);1591</NoWarn> | ||
<Copyright>Copyright 2016-2020 Marek Magdziak et al. All rights reserved.</Copyright> | ||
<VersionPrefix>5.3.5-preview</VersionPrefix> | ||
<LangVersion>latest</LangVersion> | ||
<GenerateAssemblyInfo>true</GenerateAssemblyInfo> | ||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors> | ||
<GenerateDocumentationFile>true</GenerateDocumentationFile> | ||
<LangVersion>latest</LangVersion> | ||
<CurrentYear>$([System.DateTime]::Now.ToString(yyyy))</CurrentYear> | ||
<Authors>Marek Magdziak</Authors> | ||
<Copyright>Copyright 2016-$(CurrentYear) $(Authors) et al. All rights reserved.</Copyright> | ||
<PackageLicenseExpression>MIT</PackageLicenseExpression> | ||
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance> | ||
<PackageIcon>logo.64x64.png</PackageIcon> | ||
<RepositoryType>git</RepositoryType> | ||
<DebugType>embedded</DebugType> | ||
<PublishRepositoryUrl>true</PublishRepositoryUrl> | ||
<EmbedUntrackedSources>true</EmbedUntrackedSources> | ||
<!-- https://help.github.com/en/actions/configuring-and-managing-workflows/using-environment-variables --> | ||
<ContinuousIntegrationBuild Condition="'$(GITHUB_ACTIONS)' == 'true'">True</ContinuousIntegrationBuild> | ||
Shane32 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
<NoWarn>$(NoWarn);1591</NoWarn> | ||
<Nullable>enable</Nullable> | ||
</PropertyGroup> | ||
|
||
|
||
<ItemGroup> | ||
<None Include="..\..\assets\logo.64x64.png" Pack="true" PackagePath="" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All" Condition="'$(IsPackable)' == 'true'"/> | ||
</ItemGroup> | ||
|
||
</Project> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
using PublicApiGenerator; | ||
using PublicApiGenerator; | ||
using Shouldly; | ||
using Xunit; | ||
|
||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.