From 03969a4f604dee9d6e0d909ad6e3c061fa7bbf6b Mon Sep 17 00:00:00 2001 From: Shane32 Date: Wed, 28 Apr 2021 11:24:15 -0400 Subject: [PATCH 01/16] Update CI scripts --- .github/workflows/build-artifacts-code.yml | 46 +++++++++++++ .github/workflows/codeql-analysis.yml | 20 ++++++ .github/workflows/label.yml | 19 ++++++ .github/workflows/publish-code.yml | 74 +++++++++++++++++++++ .github/workflows/publish-documentation.yml | 46 +++++++++++++ .github/workflows/test-code.yml | 72 ++++++++++++++++++++ .github/workflows/test-documentation.yml | 34 ++++++++++ .github/workflows/wipcheck.yml | 22 ++++++ GraphQL.Relay.sln | 18 +++++ src/Directory.Build.props | 25 +++++++ src/GraphQL.Relay/GraphQL.Relay.csproj | 9 +-- 11 files changed, 377 insertions(+), 8 deletions(-) create mode 100644 .github/workflows/build-artifacts-code.yml create mode 100644 .github/workflows/codeql-analysis.yml create mode 100644 .github/workflows/label.yml create mode 100644 .github/workflows/publish-code.yml create mode 100644 .github/workflows/publish-documentation.yml create mode 100644 .github/workflows/test-code.yml create mode 100644 .github/workflows/test-documentation.yml create mode 100644 .github/workflows/wipcheck.yml create mode 100644 src/Directory.Build.props diff --git a/.github/workflows/build-artifacts-code.yml b/.github/workflows/build-artifacts-code.yml new file mode 100644 index 000000000..b17420a49 --- /dev/null +++ b/.github/workflows/build-artifacts-code.yml @@ -0,0 +1,46 @@ +name: Build artifacts + +# ==== NOTE: do not rename this yml file or the run_number will be reset ==== + +on: + push: + branches: + - master + - develop + paths: + - src/** + +env: + DOTNET_NOLOGO: true + DOTNET_CLI_TELEMETRY_OPTOUT: true + +jobs: + pack: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Setup .NET Core 5.0 SDK + uses: actions/setup-dotnet@v1 + with: + dotnet-version: '5.0.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 + - 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 --no-build -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}} diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml new file mode 100644 index 000000000..f56521150 --- /dev/null +++ b/.github/workflows/codeql-analysis.yml @@ -0,0 +1,20 @@ +name: CodeQL analysis + +on: + push: + branches: [master, develop] + pull_request: + branches: [master, develop] + +jobs: + analyze: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 2 + - uses: github/codeql-action/init@v1 + with: + languages: csharp + - uses: github/codeql-action/autobuild@v1 + - uses: github/codeql-action/analyze@v1 diff --git a/.github/workflows/label.yml b/.github/workflows/label.yml new file mode 100644 index 000000000..7ac774f41 --- /dev/null +++ b/.github/workflows/label.yml @@ -0,0 +1,19 @@ +# 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@v3 + with: + sync-labels: "" + repo-token: "${{ secrets.GITHUB_TOKEN }}" + continue-on-error: true diff --git a/.github/workflows/publish-code.yml b/.github/workflows/publish-code.yml new file mode 100644 index 000000000..bb2f60bfe --- /dev/null +++ b/.github/workflows/publish-code.yml @@ -0,0 +1,74 @@ +name: Publish code + +on: + release: + types: + - published + +env: + DOTNET_NOLOGO: true + DOTNET_CLI_TELEMETRY_OPTOUT: true + +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 version number environment variable + env: + github_ref: ${{ github.ref }} + run: | + version="${github_ref:10}" + echo version=$version + echo "version=$version" >> $GITHUB_ENV + - name: Setup .NET Core 5.0 SDK + uses: actions/setup-dotnet@v1 + with: + dotnet-version: '5.0.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 + - 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 --no-build -c Release -p:Version=$version -o out + - name: Upload Nuget packages as workflow 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}} + - name: Upload Nuget packages as release artifacts + uses: actions/github-script@v2 + with: + github-token: ${{secrets.GITHUB_TOKEN}} + script: | + console.log('environment', process.versions); + const fs = require('fs').promises; + const { repo: { owner, repo }, sha } = context; + + for (let file of await fs.readdir('src/out')) { + console.log('uploading', file); + + await github.repos.uploadReleaseAsset({ + owner, + repo, + release_id: ${{ github.event.release.id }}, + name: file, + data: await fs.readFile(`src/out/${file}`) + }); + } diff --git a/.github/workflows/publish-documentation.yml b/.github/workflows/publish-documentation.yml new file mode 100644 index 000000000..92115e072 --- /dev/null +++ b/.github/workflows/publish-documentation.yml @@ -0,0 +1,46 @@ +name: Publish documentation + +on: + push: + branches: + - master + paths: + - docs2/** + - package.json + - yarn.lock + +env: + NODE_VERSION: '10.x' # Node 10 LTS + +jobs: + build-docs: + runs-on: ubuntu-latest + steps: + - name: Checkout source + uses: actions/checkout@v2 + - name: Use Node.js ${{ env.NODE_VERSION }} + uses: actions/setup-node@v1 + with: + node-version: ${{ env.NODE_VERSION }} + - name: yarn + run: yarn + - name: yarn docs2 + working-directory: docs2 + run: yarn + - name: yarn gatsby build + working-directory: docs2 + run: yarn gatsby build + - name: Publish docs artifacts + uses: actions/upload-artifact@v2 + with: + name: Documentation + path: docs2/public/** + if-no-files-found: error + - name: Deploy documentation + uses: seanmiddleditch/gha-publish-to-git@v2 + with: + repository: graphql-dotnet/graphql-dotnet.github.io + branch: master + github_token: '${{ secrets.GITHUB_TOKEN }}' + github_pat: '${{ secrets.ORG_PAT_TOKEN }}' + source_folder: docs2/public diff --git a/.github/workflows/test-code.yml b/.github/workflows/test-code.yml new file mode 100644 index 000000000..5735dc07e --- /dev/null +++ b/.github/workflows/test-code.yml @@ -0,0 +1,72 @@ +name: Test code + +on: + pull_request: + branches: + - master + - develop + paths: + - src/** + - .github/workflows/** + - "*.sln" + # Upload code coverage results when PRs are merged + push: + branches: + - master + - develop + paths: + - src/** + - .github/workflows/** + +env: + DOTNET_NOLOGO: true + DOTNET_CLI_TELEMETRY_OPTOUT: true + +jobs: + test: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: + - ubuntu-latest + - windows-latest + graphqlversion: + - 4.0.0 + - 4.2.0 + - 4.4.0 + steps: + - name: Checkout source + uses: actions/checkout@v2 + - name: Setup .NET Core 5.0 SDK + uses: actions/setup-dotnet@v1 + with: + dotnet-version: '5.0.x' + source-url: https://nuget.pkg.github.com/graphql-dotnet/index.json + env: + NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} + - name: Install dependencies with GraphQL version ${{ version.graphqlversion }} + working-directory: src + run: dotnet restore + - name: Build solution [Release] + if: ${{ startsWith(matrix.os, 'ubuntu') }} + working-directory: src + run: dotnet build --no-restore -c Release -p:GraphQLTestVersion=${{ matrix.graphqlversion }} + - name: Build solution [Debug] + working-directory: src + run: dotnet build --no-restore -c Debug -p:GraphQLTestVersion=${{ matrix.graphqlversion }} + - name: Test solution [Debug] + working-directory: src + run: dotnet test --no-restore --no-build + + buildcheck: + needs: + - test + runs-on: ubuntu-latest + if: always() + steps: + - name: Pass build check + if: ${{ needs.test.result == 'success' }} + run: exit 0 + - name: Fail build check + if: ${{ needs.test.result != 'success' }} + run: exit 1 diff --git a/.github/workflows/test-documentation.yml b/.github/workflows/test-documentation.yml new file mode 100644 index 000000000..0de8f3582 --- /dev/null +++ b/.github/workflows/test-documentation.yml @@ -0,0 +1,34 @@ +name: Test documentation + +on: + pull_request: + branches: + - master + - develop + paths: + - docs2/** + - package.json + - yarn.lock + - .github/workflows/** + +env: + NODE_VERSION: '10.x' # Node 10 LTS + +jobs: + buildcheck: + runs-on: ubuntu-latest + steps: + - name: Checkout source + uses: actions/checkout@v2 + - name: Use Node.js ${{ env.NODE_VERSION }} + uses: actions/setup-node@v1 + with: + node-version: ${{ env.NODE_VERSION }} + - name: yarn + run: yarn + - name: yarn docs2 + working-directory: docs2 + run: yarn + - name: yarn gatsby build + working-directory: docs2 + run: yarn gatsby build diff --git a/.github/workflows/wipcheck.yml b/.github/workflows/wipcheck.yml new file mode 100644 index 000000000..a61e9abe7 --- /dev/null +++ b/.github/workflows/wipcheck.yml @@ -0,0 +1,22 @@ +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] + env: + TITLE: ${{ github.event.pull_request.title }} + if: ${{ contains(github.event.pull_request.title, '[WIP]') }} # This function is case insensitive. + run: | + echo Warning! PR title "$TITLE" contains [WIP]. Remove [WIP] from the title when PR is ready. + exit 1 diff --git a/GraphQL.Relay.sln b/GraphQL.Relay.sln index 1ac3f8a6f..279647d72 100644 --- a/GraphQL.Relay.sln +++ b/GraphQL.Relay.sln @@ -10,6 +10,21 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "GraphQL.Relay.StarWars", "s EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "GraphQL.Relay.Todo", "src\GraphQL.Relay.Todo\GraphQL.Relay.Todo.csproj", "{15AFC7EC-11E6-469F-87DF-D1E396463BE9}" EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".github", ".github", "{2F92B771-95CF-4FC3-AE9A-52E9273349F1}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "workflows", "workflows", "{FA0A321D-0F73-478E-9B1D-495A96F4BF6D}" + ProjectSection(SolutionItems) = preProject + .github\workflows\build-artifacts-code.yml = .github\workflows\build-artifacts-code.yml + .github\workflows\publish-code.yml = .github\workflows\publish-code.yml + .github\workflows\test-code.yml = .github\workflows\test-code.yml + .github\workflows\wipcheck.yml = .github\workflows\wipcheck.yml + EndProjectSection +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".Solution Items", ".Solution Items", "{5EBDC740-68FC-451D-9F02-B81314A5059E}" + ProjectSection(SolutionItems) = preProject + src\Directory.Build.props = src\Directory.Build.props + EndProjectSection +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -72,6 +87,9 @@ Global GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection + GlobalSection(NestedProjects) = preSolution + {FA0A321D-0F73-478E-9B1D-495A96F4BF6D} = {2F92B771-95CF-4FC3-AE9A-52E9273349F1} + EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {26C9760C-72D8-43A7-B0D6-FA4AE10D5F06} EndGlobalSection diff --git a/src/Directory.Build.props b/src/Directory.Build.props new file mode 100644 index 000000000..3d3087435 --- /dev/null +++ b/src/Directory.Build.props @@ -0,0 +1,25 @@ + + + + 0.6.0-preview + latest + Jason Quense + MIT + logo.64x64.png + true + git + true + true + + + True + embedded + true + 4.2.0 + + + + + + + diff --git a/src/GraphQL.Relay/GraphQL.Relay.csproj b/src/GraphQL.Relay/GraphQL.Relay.csproj index fb8ae0ae8..08f3db050 100644 --- a/src/GraphQL.Relay/GraphQL.Relay.csproj +++ b/src/GraphQL.Relay/GraphQL.Relay.csproj @@ -1,16 +1,9 @@  - Jason Quense - 0.6.0-pre3 netstandard2.0 GraphQL;Relay;React - https://github.com/graphql-dotnet/relay - https://github.com/graphql-dotnet/relay/blob/master/LICENSE.md - false - false - false - + From 9fee34fd5f96f1dcb2ef678239b23d809e0f66ca Mon Sep 17 00:00:00 2001 From: Shane32 Date: Wed, 28 Apr 2021 11:25:47 -0400 Subject: [PATCH 02/16] Update --- .github/workflows/codeql-analysis.yml | 20 --------- .github/workflows/label.yml | 19 --------- .github/workflows/publish-documentation.yml | 46 --------------------- .github/workflows/test-documentation.yml | 34 --------------- 4 files changed, 119 deletions(-) delete mode 100644 .github/workflows/codeql-analysis.yml delete mode 100644 .github/workflows/label.yml delete mode 100644 .github/workflows/publish-documentation.yml delete mode 100644 .github/workflows/test-documentation.yml diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml deleted file mode 100644 index f56521150..000000000 --- a/.github/workflows/codeql-analysis.yml +++ /dev/null @@ -1,20 +0,0 @@ -name: CodeQL analysis - -on: - push: - branches: [master, develop] - pull_request: - branches: [master, develop] - -jobs: - analyze: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - with: - fetch-depth: 2 - - uses: github/codeql-action/init@v1 - with: - languages: csharp - - uses: github/codeql-action/autobuild@v1 - - uses: github/codeql-action/analyze@v1 diff --git a/.github/workflows/label.yml b/.github/workflows/label.yml deleted file mode 100644 index 7ac774f41..000000000 --- a/.github/workflows/label.yml +++ /dev/null @@ -1,19 +0,0 @@ -# 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@v3 - with: - sync-labels: "" - repo-token: "${{ secrets.GITHUB_TOKEN }}" - continue-on-error: true diff --git a/.github/workflows/publish-documentation.yml b/.github/workflows/publish-documentation.yml deleted file mode 100644 index 92115e072..000000000 --- a/.github/workflows/publish-documentation.yml +++ /dev/null @@ -1,46 +0,0 @@ -name: Publish documentation - -on: - push: - branches: - - master - paths: - - docs2/** - - package.json - - yarn.lock - -env: - NODE_VERSION: '10.x' # Node 10 LTS - -jobs: - build-docs: - runs-on: ubuntu-latest - steps: - - name: Checkout source - uses: actions/checkout@v2 - - name: Use Node.js ${{ env.NODE_VERSION }} - uses: actions/setup-node@v1 - with: - node-version: ${{ env.NODE_VERSION }} - - name: yarn - run: yarn - - name: yarn docs2 - working-directory: docs2 - run: yarn - - name: yarn gatsby build - working-directory: docs2 - run: yarn gatsby build - - name: Publish docs artifacts - uses: actions/upload-artifact@v2 - with: - name: Documentation - path: docs2/public/** - if-no-files-found: error - - name: Deploy documentation - uses: seanmiddleditch/gha-publish-to-git@v2 - with: - repository: graphql-dotnet/graphql-dotnet.github.io - branch: master - github_token: '${{ secrets.GITHUB_TOKEN }}' - github_pat: '${{ secrets.ORG_PAT_TOKEN }}' - source_folder: docs2/public diff --git a/.github/workflows/test-documentation.yml b/.github/workflows/test-documentation.yml deleted file mode 100644 index 0de8f3582..000000000 --- a/.github/workflows/test-documentation.yml +++ /dev/null @@ -1,34 +0,0 @@ -name: Test documentation - -on: - pull_request: - branches: - - master - - develop - paths: - - docs2/** - - package.json - - yarn.lock - - .github/workflows/** - -env: - NODE_VERSION: '10.x' # Node 10 LTS - -jobs: - buildcheck: - runs-on: ubuntu-latest - steps: - - name: Checkout source - uses: actions/checkout@v2 - - name: Use Node.js ${{ env.NODE_VERSION }} - uses: actions/setup-node@v1 - with: - node-version: ${{ env.NODE_VERSION }} - - name: yarn - run: yarn - - name: yarn docs2 - working-directory: docs2 - run: yarn - - name: yarn gatsby build - working-directory: docs2 - run: yarn gatsby build From dbc843b1c36cf8c3eb8fe1232a5b782a5727f560 Mon Sep 17 00:00:00 2001 From: Shane32 Date: Wed, 28 Apr 2021 11:36:29 -0400 Subject: [PATCH 03/16] Fix --- .github/workflows/test-code.yml | 7 +++++-- src/Directory.Build.props | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test-code.yml b/.github/workflows/test-code.yml index 5735dc07e..392a3ef0d 100644 --- a/.github/workflows/test-code.yml +++ b/.github/workflows/test-code.yml @@ -31,8 +31,11 @@ jobs: - ubuntu-latest - windows-latest graphqlversion: - - 4.0.0 + - 2.4.0 + - 4.0.2 + - 4.1.0 - 4.2.0 + - 4.3.0 - 4.4.0 steps: - name: Checkout source @@ -44,7 +47,7 @@ jobs: source-url: https://nuget.pkg.github.com/graphql-dotnet/index.json env: NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} - - name: Install dependencies with GraphQL version ${{ version.graphqlversion }} + - name: Install dependencies with GraphQL version ${{ matrix.graphqlversion }} working-directory: src run: dotnet restore - name: Build solution [Release] diff --git a/src/Directory.Build.props b/src/Directory.Build.props index 3d3087435..306a88af0 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -15,7 +15,7 @@ True embedded true - 4.2.0 + 4.0.2 From 62b00cdbedad056d4013cf45fd4a868f21aecf99 Mon Sep 17 00:00:00 2001 From: Shane32 Date: Wed, 28 Apr 2021 11:41:54 -0400 Subject: [PATCH 04/16] Updates --- .github/workflows/build-artifacts-code.yml | 7 ++----- .github/workflows/publish-code.yml | 8 ++------ .github/workflows/test-code.yml | 4 ---- 3 files changed, 4 insertions(+), 15 deletions(-) diff --git a/.github/workflows/build-artifacts-code.yml b/.github/workflows/build-artifacts-code.yml index b17420a49..b39044b56 100644 --- a/.github/workflows/build-artifacts-code.yml +++ b/.github/workflows/build-artifacts-code.yml @@ -9,6 +9,7 @@ on: - develop paths: - src/** + - "*.sln" env: DOTNET_NOLOGO: true @@ -27,20 +28,16 @@ jobs: env: NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} - name: Install dependencies - working-directory: src run: dotnet restore - 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 --no-build -c Release -p:VersionSuffix=$GITHUB_RUN_NUMBER -o out - name: Upload artifacts uses: actions/upload-artifact@v2 with: name: Nuget packages path: | - src/out/* + out/* - name: Publish Nuget packages to GitHub registry - working-directory: src run: dotnet nuget push "out/*" -k ${{secrets.GITHUB_TOKEN}} diff --git a/.github/workflows/publish-code.yml b/.github/workflows/publish-code.yml index bb2f60bfe..8b553b43e 100644 --- a/.github/workflows/publish-code.yml +++ b/.github/workflows/publish-code.yml @@ -35,22 +35,18 @@ jobs: env: NUGET_AUTH_TOKEN: ${{secrets.NUGET_AUTH_TOKEN}} - name: Install dependencies - working-directory: src run: dotnet restore - 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 --no-build -c Release -p:Version=$version -o out - name: Upload Nuget packages as workflow artifacts uses: actions/upload-artifact@v2 with: name: Nuget packages path: | - src/out/* + out/* - name: Publish Nuget packages to Nuget registry - working-directory: src run: dotnet nuget push "out/*" -k ${{secrets.NUGET_AUTH_TOKEN}} - name: Upload Nuget packages as release artifacts uses: actions/github-script@v2 @@ -69,6 +65,6 @@ jobs: repo, release_id: ${{ github.event.release.id }}, name: file, - data: await fs.readFile(`src/out/${file}`) + data: await fs.readFile(`out/${file}`) }); } diff --git a/.github/workflows/test-code.yml b/.github/workflows/test-code.yml index 392a3ef0d..e9878e357 100644 --- a/.github/workflows/test-code.yml +++ b/.github/workflows/test-code.yml @@ -48,17 +48,13 @@ jobs: env: NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} - name: Install dependencies with GraphQL version ${{ matrix.graphqlversion }} - working-directory: src run: dotnet restore - name: Build solution [Release] if: ${{ startsWith(matrix.os, 'ubuntu') }} - working-directory: src run: dotnet build --no-restore -c Release -p:GraphQLTestVersion=${{ matrix.graphqlversion }} - name: Build solution [Debug] - working-directory: src run: dotnet build --no-restore -c Debug -p:GraphQLTestVersion=${{ matrix.graphqlversion }} - name: Test solution [Debug] - working-directory: src run: dotnet test --no-restore --no-build buildcheck: From 1643d6a4985c4583491488db3c42b20deafe6e54 Mon Sep 17 00:00:00 2001 From: Shane32 Date: Wed, 28 Apr 2021 11:44:25 -0400 Subject: [PATCH 05/16] Fix --- src/GraphQL.Relay.Test/GraphQL.Relay.Test.csproj | 2 +- src/GraphQL.Relay/GraphQL.Relay.csproj | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/GraphQL.Relay.Test/GraphQL.Relay.Test.csproj b/src/GraphQL.Relay.Test/GraphQL.Relay.Test.csproj index 01c365218..15d63a873 100644 --- a/src/GraphQL.Relay.Test/GraphQL.Relay.Test.csproj +++ b/src/GraphQL.Relay.Test/GraphQL.Relay.Test.csproj @@ -5,7 +5,7 @@ - + diff --git a/src/GraphQL.Relay/GraphQL.Relay.csproj b/src/GraphQL.Relay/GraphQL.Relay.csproj index 08f3db050..c231f2b8a 100644 --- a/src/GraphQL.Relay/GraphQL.Relay.csproj +++ b/src/GraphQL.Relay/GraphQL.Relay.csproj @@ -4,6 +4,6 @@ GraphQL;Relay;React - + From 236cbe31aaf2fbfc48012b675f50aa99d22addb2 Mon Sep 17 00:00:00 2001 From: Shane32 Date: Wed, 28 Apr 2021 11:51:00 -0400 Subject: [PATCH 06/16] Update --- src/GraphQL.Relay/Properties/AssemblyInfo.cs | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/GraphQL.Relay/Properties/AssemblyInfo.cs b/src/GraphQL.Relay/Properties/AssemblyInfo.cs index 01f9d8538..0b553c3e3 100644 --- a/src/GraphQL.Relay/Properties/AssemblyInfo.cs +++ b/src/GraphQL.Relay/Properties/AssemblyInfo.cs @@ -5,9 +5,6 @@ // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("Microsoft")] -[assembly: AssemblyProduct("GraphQL.Relay")] [assembly: AssemblyTrademark("")] // Setting ComVisible to false makes the types in this assembly not visible From 0ec58227e15ce735b15a87bc42d6ab4ca475c705 Mon Sep 17 00:00:00 2001 From: Shane32 Date: Wed, 28 Apr 2021 11:57:02 -0400 Subject: [PATCH 07/16] Update --- .github/workflows/test-code.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/test-code.yml b/.github/workflows/test-code.yml index e9878e357..c4edc87d8 100644 --- a/.github/workflows/test-code.yml +++ b/.github/workflows/test-code.yml @@ -31,7 +31,6 @@ jobs: - ubuntu-latest - windows-latest graphqlversion: - - 2.4.0 - 4.0.2 - 4.1.0 - 4.2.0 From e709616b241ef4184ec9d863e69dca59727359ce Mon Sep 17 00:00:00 2001 From: Shane32 Date: Wed, 28 Apr 2021 12:05:05 -0400 Subject: [PATCH 08/16] Fix test --- src/GraphQL.Relay.Test/Types/QueryGraphTypeTests.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/GraphQL.Relay.Test/Types/QueryGraphTypeTests.cs b/src/GraphQL.Relay.Test/Types/QueryGraphTypeTests.cs index 26553b580..dee080454 100644 --- a/src/GraphQL.Relay.Test/Types/QueryGraphTypeTests.cs +++ b/src/GraphQL.Relay.Test/Types/QueryGraphTypeTests.cs @@ -38,7 +38,11 @@ public override SimpleData GetById(string id) => SimpleData public class SimpleSchema : Schema { - public SimpleSchema() => (Query) = (new QueryGraphType()); + public SimpleSchema() + { + Query = new QueryGraphType(); + RegisterType(new SimpleNodeGraphType()); + } } public class QueryGraphTypeTests From 7c10c484259d00cb00993692147e9cf7c08e1754 Mon Sep 17 00:00:00 2001 From: Shane32 Date: Wed, 28 Apr 2021 12:06:52 -0400 Subject: [PATCH 09/16] Update CI --- src/GraphQL.Relay.StarWars/GraphQL.Relay.StarWars.csproj | 1 + src/GraphQL.Relay.Test/GraphQL.Relay.Test.csproj | 1 + src/GraphQL.Relay.Todo/GraphQL.Relay.Todo.csproj | 1 + 3 files changed, 3 insertions(+) diff --git a/src/GraphQL.Relay.StarWars/GraphQL.Relay.StarWars.csproj b/src/GraphQL.Relay.StarWars/GraphQL.Relay.StarWars.csproj index b56fca05d..c6275a6b7 100644 --- a/src/GraphQL.Relay.StarWars/GraphQL.Relay.StarWars.csproj +++ b/src/GraphQL.Relay.StarWars/GraphQL.Relay.StarWars.csproj @@ -1,6 +1,7 @@  net5 + $(NoWarn);1591;IDE1006 diff --git a/src/GraphQL.Relay.Test/GraphQL.Relay.Test.csproj b/src/GraphQL.Relay.Test/GraphQL.Relay.Test.csproj index 15d63a873..c4deaca8d 100644 --- a/src/GraphQL.Relay.Test/GraphQL.Relay.Test.csproj +++ b/src/GraphQL.Relay.Test/GraphQL.Relay.Test.csproj @@ -2,6 +2,7 @@ net5 + $(NoWarn);1591;IDE1006 diff --git a/src/GraphQL.Relay.Todo/GraphQL.Relay.Todo.csproj b/src/GraphQL.Relay.Todo/GraphQL.Relay.Todo.csproj index 4e0b6e4b7..10d3e72b0 100644 --- a/src/GraphQL.Relay.Todo/GraphQL.Relay.Todo.csproj +++ b/src/GraphQL.Relay.Todo/GraphQL.Relay.Todo.csproj @@ -2,6 +2,7 @@ net5 + $(NoWarn);1591;IDE1006 From 26714f4f4fc18ea221e4a3d98794bc07a7bf2ba4 Mon Sep 17 00:00:00 2001 From: Shane32 Date: Wed, 28 Apr 2021 12:23:56 -0400 Subject: [PATCH 10/16] update --- UpgradeLog.htm | Bin 41782 -> 0 bytes 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 UpgradeLog.htm diff --git a/UpgradeLog.htm b/UpgradeLog.htm deleted file mode 100644 index 46e2d75fc250ec6e7553a138c401eab35bdb3bf2..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 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SoxPb=a}SSY;#*stj7 zt#$VPxdX?4+s!U6)zYN5+Nn2Xp~ROS^dUX}@w1F%B%IXJ(GRxF)I+cmz@HpF9BL@#8S{XA1zmZZ%8AF!luE3c28RmvK%NeK00$7Lw=yL^-N z>#t3oORP4u0-C3qeYKfxUcJe(ukruXkVllXf=|;vOS2gI zzhm<@jcsuw&1%I8CuQ_kvBKI@B3mUc#^01H>ni`MEV6%BqGhb@2_My}i>kr;&!WE?-3x_CMgwMtVM9U+tizhoriJ$$qhli)h;@Zw()yWxnh=3c*{b4lJ+ikJNY~_SGx!;S>!&#MU{p)Kz zJ7`gDa(y^tzr3#8m;N`x{k}E65grdZuD8v^cV>l{^8bg$Pp&*2+Gn4 zh9FeIAnbn>4HbIGV>4Qh?%K;7WO>te!_h2jKai08Z+?O{>W)QM+EphC=hrCN1 zpNAZb-s Date: Wed, 28 Apr 2021 19:51:41 -0400 Subject: [PATCH 11/16] Updates --- .github/workflows/test-code.yml | 2 +- src/Directory.Build.props | 3 +-- src/GraphQL.Relay.Todo/GraphQL.Relay.Todo.csproj | 5 ----- src/GraphQL.Relay/GraphQL.Relay.csproj | 2 +- src/GraphQL.Relay/Properties/AssemblyInfo.cs | 16 ---------------- 5 files changed, 3 insertions(+), 25 deletions(-) delete mode 100644 src/GraphQL.Relay/Properties/AssemblyInfo.cs diff --git a/.github/workflows/test-code.yml b/.github/workflows/test-code.yml index c4edc87d8..cea149bbf 100644 --- a/.github/workflows/test-code.yml +++ b/.github/workflows/test-code.yml @@ -31,7 +31,7 @@ jobs: - ubuntu-latest - windows-latest graphqlversion: - - 4.0.2 + - 4.0.3 - 4.1.0 - 4.2.0 - 4.3.0 diff --git a/src/Directory.Build.props b/src/Directory.Build.props index 306a88af0..0e13c4a0f 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -5,7 +5,6 @@ latest Jason Quense MIT - logo.64x64.png true git true @@ -15,7 +14,7 @@ True embedded true - 4.0.2 + 4.0.3 diff --git a/src/GraphQL.Relay.Todo/GraphQL.Relay.Todo.csproj b/src/GraphQL.Relay.Todo/GraphQL.Relay.Todo.csproj index 10d3e72b0..3c1b9315c 100644 --- a/src/GraphQL.Relay.Todo/GraphQL.Relay.Todo.csproj +++ b/src/GraphQL.Relay.Todo/GraphQL.Relay.Todo.csproj @@ -5,11 +5,6 @@ $(NoWarn);1591;IDE1006 - - - - - diff --git a/src/GraphQL.Relay/GraphQL.Relay.csproj b/src/GraphQL.Relay/GraphQL.Relay.csproj index c231f2b8a..b4ba97fd2 100644 --- a/src/GraphQL.Relay/GraphQL.Relay.csproj +++ b/src/GraphQL.Relay/GraphQL.Relay.csproj @@ -4,6 +4,6 @@ GraphQL;Relay;React - + diff --git a/src/GraphQL.Relay/Properties/AssemblyInfo.cs b/src/GraphQL.Relay/Properties/AssemblyInfo.cs deleted file mode 100644 index 0b553c3e3..000000000 --- a/src/GraphQL.Relay/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,16 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTrademark("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("46076f16-c4f7-4879-903d-70d75dd8b3ef")] From 2a447d96b2f4066bdc04e7dc6a7d8e0e4f492a61 Mon Sep 17 00:00:00 2001 From: Shane32 Date: Wed, 28 Apr 2021 19:53:40 -0400 Subject: [PATCH 12/16] update --- .github/workflows/test-code.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-code.yml b/.github/workflows/test-code.yml index cea149bbf..eab41e3af 100644 --- a/.github/workflows/test-code.yml +++ b/.github/workflows/test-code.yml @@ -47,7 +47,7 @@ jobs: env: NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} - name: Install dependencies with GraphQL version ${{ matrix.graphqlversion }} - run: dotnet restore + run: dotnet restore -p:GraphQLTestVersion=${{ matrix.graphqlversion }} - name: Build solution [Release] if: ${{ startsWith(matrix.os, 'ubuntu') }} run: dotnet build --no-restore -c Release -p:GraphQLTestVersion=${{ matrix.graphqlversion }} From c128435b872b9431fbe2a428f016013820e0330d Mon Sep 17 00:00:00 2001 From: Shane32 Date: Wed, 28 Apr 2021 19:55:40 -0400 Subject: [PATCH 13/16] Updates --- .github/workflows/test-code.yml | 2 +- src/Directory.Build.props | 2 +- src/GraphQL.Relay/GraphQL.Relay.csproj | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test-code.yml b/.github/workflows/test-code.yml index eab41e3af..ad84ae7c1 100644 --- a/.github/workflows/test-code.yml +++ b/.github/workflows/test-code.yml @@ -31,7 +31,7 @@ jobs: - ubuntu-latest - windows-latest graphqlversion: - - 4.0.3 + - 4.0.2 - 4.1.0 - 4.2.0 - 4.3.0 diff --git a/src/Directory.Build.props b/src/Directory.Build.props index 0e13c4a0f..bddc47a5d 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -14,7 +14,7 @@ True embedded true - 4.0.3 + 4.0.2 diff --git a/src/GraphQL.Relay/GraphQL.Relay.csproj b/src/GraphQL.Relay/GraphQL.Relay.csproj index b4ba97fd2..c231f2b8a 100644 --- a/src/GraphQL.Relay/GraphQL.Relay.csproj +++ b/src/GraphQL.Relay/GraphQL.Relay.csproj @@ -4,6 +4,6 @@ GraphQL;Relay;React - + From 973382e981f5ed354243ff74a59a6bd72e07de12 Mon Sep 17 00:00:00 2001 From: Shane32 Date: Wed, 28 Apr 2021 19:58:28 -0400 Subject: [PATCH 14/16] test --- src/GraphQL.Relay.Test/UnitTest1.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/GraphQL.Relay.Test/UnitTest1.cs b/src/GraphQL.Relay.Test/UnitTest1.cs index 4b93c91d6..d9c036e60 100644 --- a/src/GraphQL.Relay.Test/UnitTest1.cs +++ b/src/GraphQL.Relay.Test/UnitTest1.cs @@ -7,6 +7,11 @@ public class UnitTest1 { [Fact] public void Test1() + { + var z = SystemTextJson.StringExtensions.FromJson("{}"); + } + + public class MyClass { } From 7940a42a68e1a02911aa298f8daadee72b78f4df Mon Sep 17 00:00:00 2001 From: Shane32 Date: Wed, 28 Apr 2021 20:00:36 -0400 Subject: [PATCH 15/16] Undo --- src/GraphQL.Relay.Test/UnitTest1.cs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/GraphQL.Relay.Test/UnitTest1.cs b/src/GraphQL.Relay.Test/UnitTest1.cs index d9c036e60..4b93c91d6 100644 --- a/src/GraphQL.Relay.Test/UnitTest1.cs +++ b/src/GraphQL.Relay.Test/UnitTest1.cs @@ -7,11 +7,6 @@ public class UnitTest1 { [Fact] public void Test1() - { - var z = SystemTextJson.StringExtensions.FromJson("{}"); - } - - public class MyClass { } From 03952ccfa6c19f3c42583fcb3f2663eb9acc3a46 Mon Sep 17 00:00:00 2001 From: Shane32 Date: Wed, 28 Apr 2021 20:18:06 -0400 Subject: [PATCH 16/16] Update shouldly --- src/GraphQL.Relay.Test/GraphQL.Relay.Test.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GraphQL.Relay.Test/GraphQL.Relay.Test.csproj b/src/GraphQL.Relay.Test/GraphQL.Relay.Test.csproj index c4deaca8d..3d6906379 100644 --- a/src/GraphQL.Relay.Test/GraphQL.Relay.Test.csproj +++ b/src/GraphQL.Relay.Test/GraphQL.Relay.Test.csproj @@ -8,7 +8,7 @@ - +