Skip to content

Commit

Permalink
Multi version targeting of GraphQL.NET (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shane32 authored Nov 2, 2020
1 parent b49eec6 commit a590608
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 5 deletions.
20 changes: 16 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ jobs:
os:
- ubuntu-latest
- windows-latest
graphqlversion:
- 3.0.0
- 3.1.0
- 3.1.3
- 4.0.0-preview-17
steps:
- name: Checkout source
uses: actions/checkout@v2
Expand All @@ -28,15 +33,22 @@ jobs:
source-url: https://nuget.pkg.github.com/graphql-dotnet/index.json
env:
NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Install dependencies
- name: Install dependencies with GraphQL version ${{ matrix.graphqlversion }}
working-directory: src
run: dotnet restore
run: dotnet restore -p:GraphQLTestVersion=${{ matrix.graphqlversion }}
- name: Build solution [Release]
working-directory: src
run: dotnet build --no-restore -c Release -p:NoWarn=CS1591
run: dotnet build --no-restore -c Release -p:NoWarn=CS1591 -p:GraphQLTestVersion=${{ matrix.graphqlversion }}
- name: Build solution [Debug]
working-directory: src
run: dotnet build --no-restore -p:NoWarn=CS1591
run: dotnet build --no-restore -p:NoWarn=CS1591 -p:GraphQLTestVersion=${{ matrix.graphqlversion }}
- name: Test solution [Debug]
working-directory: src
run: dotnet test --no-restore --no-build
all-tests:
needs:
- test
runs-on: ubuntu-latest
steps:
- name: All tests completed successfully
run: exit 0
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
<NoWarn>$(NoWarn);1591;IDE1006</NoWarn>
<GraphQLTestVersion>3.1.3</GraphQLTestVersion>
</PropertyGroup>

<ItemGroup>
Expand All @@ -16,4 +17,8 @@
<ProjectReference Include="..\GraphQL.Authorization\GraphQL.Authorization.csproj" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="GraphQL" Version="$(GraphQLTestVersion)" />
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion src/GraphQL.Authorization/GraphQL.Authorization.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="GraphQL" Version="3.1.3" />
<PackageReference Include="GraphQL" Version="3.0.0" />
</ItemGroup>

</Project>

0 comments on commit a590608

Please sign in to comment.