Skip to content

Commit 0957443

Browse files
authored
Use composite action for integration test setup (#720)
1 parent 0292385 commit 0957443

File tree

2 files changed

+22
-14
lines changed

2 files changed

+22
-14
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: 'PerpareIntegratoinTestAction'
2+
description: 'Perpare for running integration test'
3+
inputs:
4+
dotnet-version:
5+
description: '.NET SDK version(s) to use. Examples: 2.2.104, 3.1, 3.1.x, 3.x, 6.0.2xx'
6+
required: true
7+
runs:
8+
using: "composite"
9+
steps:
10+
- name: Download build artifact
11+
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4
12+
with:
13+
name: NuGet Package
14+
path: ./BuildArtifacts/Packages/NuGet
15+
- name: Install .NET
16+
uses: actions/setup-dotnet@6bd8b7f7774af54e05809fcc5431931b3eb1ddee # v4
17+
with:
18+
dotnet-version: ${{ inputs.dotnet-version }}

.github/workflows/integrationtests.yml

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,8 @@ jobs:
5252
steps:
5353
- name: Get the sources
5454
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
55-
- name: Download build artifact
56-
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4
57-
with:
58-
name: NuGet Package
59-
path: ./BuildArtifacts/Packages/NuGet
60-
- name: Install .NET
61-
uses: actions/setup-dotnet@6bd8b7f7774af54e05809fcc5431931b3eb1ddee # v4
55+
- name: Prepare integration tests
56+
uses: ./.github/actions/prepare-integration-test
6257
with:
6358
dotnet-version: ${{ matrix.dotnet }}
6459
- name: Run integration tests
@@ -81,13 +76,8 @@ jobs:
8176
steps:
8277
- name: Get the sources
8378
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
84-
- name: Download build artifact
85-
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4
86-
with:
87-
name: NuGet Package
88-
path: ./BuildArtifacts/Packages/NuGet
89-
- name: Install .NET
90-
uses: actions/setup-dotnet@6bd8b7f7774af54e05809fcc5431931b3eb1ddee # v4
79+
- name: Prepare integration tests
80+
uses: ./.github/actions/prepare-integration-test
9181
with:
9282
dotnet-version: ${{ matrix.dotnet }}
9383
- name: Run integration tests

0 commit comments

Comments
 (0)