Skip to content

Commit 227e62e

Browse files
committed
ci(integration-tests.yml): set version v3 to actions/checkout
1 parent 1c72642 commit 227e62e

File tree

1 file changed

+21
-27
lines changed

1 file changed

+21
-27
lines changed
Lines changed: 21 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,30 @@
11
name: Integration tests
2-
3-
on:
4-
push:
5-
6-
# Runs at 00:00 UTC every day
2+
"on":
3+
push: null
74
schedule:
8-
- cron: '0 */24 * * *'
9-
10-
# Runs when repository is starred
5+
- cron: 0 */24 * * *
116
watch:
12-
types: [started]
13-
7+
types:
8+
- started
149
env:
1510
config: Release
16-
1711
jobs:
1812
integration-tests:
1913
runs-on: windows-latest
20-
2114
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

Comments
 (0)