|
1 | 1 | name: Integration tests
|
2 |
| - |
3 |
| -on: |
4 |
| - push: |
5 |
| - |
6 |
| - # Runs at 00:00 UTC every day |
| 2 | +"on": |
| 3 | + push: null |
7 | 4 | schedule:
|
8 |
| - - cron: '0 */24 * * *' |
9 |
| - |
10 |
| - # Runs when repository is starred |
| 5 | + - cron: 0 */24 * * * |
11 | 6 | watch:
|
12 |
| - types: [started] |
13 |
| - |
| 7 | + types: |
| 8 | + - started |
14 | 9 | env:
|
15 | 10 | config: Release
|
16 |
| - |
17 | 11 | jobs:
|
18 | 12 | integration-tests:
|
19 | 13 | runs-on: windows-latest
|
20 |
| - |
21 | 14 | steps:
|
22 |
| - - uses: actions/checkout@v2 |
23 |
| - |
24 |
| - - name: Setup .NET Core |
25 |
| - uses: actions/setup-dotnet@v1 |
26 |
| - with: |
27 |
| - dotnet-version: 3.1.101 |
28 |
| - |
29 |
| - - name: Build using .NET Core |
30 |
| - run: dotnet build Octokit.GraphQL.sln -c ${{ env.config }} |
31 |
| - |
32 |
| - - name: Run integration tests |
33 |
| - 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 |
34 |
| - env: |
35 |
| - OCTOKIT_GQL_OAUTHTOKEN: "${{ secrets.OCTOKIT_GQL_OAUTHTOKEN }}" |
36 |
| - OCTOKIT_GQL_GITHUBUSERNAME: "${{ secrets.OCTOKIT_GQL_GITHUBUSERNAME }}" |
| 15 | + - uses: actions/checkout@v3 |
| 16 | + - name: Setup .NET Core |
| 17 | + uses: actions/setup-dotnet@v1 |
| 18 | + with: |
| 19 | + dotnet-version: 3.1.101 |
| 20 | + - name: Build using .NET Core |
| 21 | + run: dotnet build Octokit.GraphQL.sln -c ${{ env.config }} |
| 22 | + - name: Run integration tests |
| 23 | + run: >- |
| 24 | + dotnet test -c ${{ env.config }} --no-build /p:CollectCoverage=true |
| 25 | + /p:CoverletOutputFormat=opencover |
| 26 | + /p:Exclude="[Octokit.GraphQL]Octokit.GraphQL.*" |
| 27 | + .\Octokit.GraphQL.IntegrationTests\Octokit.GraphQL.IntegrationTests.csproj |
| 28 | + env: |
| 29 | + OCTOKIT_GQL_OAUTHTOKEN: ${{ secrets.OCTOKIT_GQL_OAUTHTOKEN }} |
| 30 | + OCTOKIT_GQL_GITHUBUSERNAME: ${{ secrets.OCTOKIT_GQL_GITHUBUSERNAME }} |
0 commit comments