-
Notifications
You must be signed in to change notification settings - Fork 165
Replace Appveyor with GitHub Actions #391
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
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
3459f3f
Add GitHub workflows
Shane32 6c49f2b
Run tests for any PR, not just changes to src
Shane32 e78e6eb
Always build artifacts; why not?
Shane32 3a2089d
Update TestStartup.cs
Shane32 621afbd
Add SourceLink support
Shane32 4c9ac4b
Update Directory.Build.props
Shane32 9fc40a2
Test build
Shane32 1cb0935
Update build.yml
Shane32 27efd78
Update publish.yml
Shane32 bcf0558
Fix naming of xml files
Shane32 2c7f88e
Update Directory.Build.props
Shane32 bc15956
Update build.yml
Shane32 309f4fe
Update workflow files
Shane32 14a5648
Remove extra files
Shane32 738e73d
Restore appveyor
Shane32 d95fa8a
Merge branch 'develop' into github-packages
Shane32 acf6028
Delete appveyor.yml
Shane32 a5b49a8
Update Directory.Build.props
Shane32 f3ac594
Apply suggestions from code review
Shane32 d278168
Update .github/workflows/build.yml
Shane32 fcd51f1
Update .github/workflows/publish.yml
Shane32 da5ef7a
Update .github/workflows/publish.yml
Shane32 04ee79c
Update .github/workflows/publish.yml
Shane32 a6d93c9
Update labeler
Shane32 76d3a4a
Update .github/workflows/build.yml
Shane32 732e7b0
Update .github/workflows/build.yml
Shane32 816299b
Update Directory.Build.props
Shane32 3d5c36f
Update Directory.Build.props
Shane32 6334e2c
Update Directory.Build.props
Shane32 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
| 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,11 @@ | ||
| "test": | ||
| - Tests/**/* | ||
|
|
||
| "CI": | ||
| - .github/workflows/**/* | ||
|
|
||
| "code style": | ||
| - .editorconfig | ||
|
|
||
| "performance": | ||
| - src/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,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 | ||
sungam3r marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| - 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}} | ||
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,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 | ||
sungam3r marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| 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}} | ||
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,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 |
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 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
Empty file.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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.