Skip to content

Commit 9e0096b

Browse files
authored
Add integration tests workflow
1 parent e2f23d8 commit 9e0096b

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Integration tests
2+
3+
on:
4+
push:
5+
6+
env:
7+
config: Release
8+
9+
jobs:
10+
integration-tests:
11+
runs-on: windows-latest
12+
13+
steps:
14+
- uses: actions/checkout@v2
15+
16+
- name: Setup .NET Core
17+
uses: actions/setup-dotnet@v1
18+
with:
19+
dotnet-version: 3.1.101
20+
21+
- name: Build using .NET Core
22+
run: dotnet build Octokit.GraphQL.sln -c ${{ env.config }}
23+
24+
- name: Run integration tests
25+
run: dotnet test -c ${{ env.config }} --no-build /p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:Exclude="[Octokit.GraphQL]Octokit.GraphQL.*" .\Octokit.GraphQL.IntegrationTests\Octokit.GraphQL.IntegrationTests.csproj
26+
env:
27+
OCTOKIT_GQL_OAUTHTOKEN: "${{ secrets.OCTOKIT_GQL_OAUTHTOKEN }}"
28+
OCTOKIT_GQL_GITHUBUSERNAME: "${{ secrets.OCTOKIT_GQL_GITHUBUSERNAME }}"

0 commit comments

Comments
 (0)