Skip to content

Commit

Permalink
Use composite action for integration test setup (#720)
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalberger authored Aug 15, 2024
1 parent 0292385 commit 0957443
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 14 deletions.
18 changes: 18 additions & 0 deletions .github/actions/prepare-integration-test/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: 'PerpareIntegratoinTestAction'
description: 'Perpare for running integration test'
inputs:
dotnet-version:
description: '.NET SDK version(s) to use. Examples: 2.2.104, 3.1, 3.1.x, 3.x, 6.0.2xx'
required: true
runs:
using: "composite"
steps:
- name: Download build artifact
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4
with:
name: NuGet Package
path: ./BuildArtifacts/Packages/NuGet
- name: Install .NET
uses: actions/setup-dotnet@6bd8b7f7774af54e05809fcc5431931b3eb1ddee # v4
with:
dotnet-version: ${{ inputs.dotnet-version }}
18 changes: 4 additions & 14 deletions .github/workflows/integrationtests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,8 @@ jobs:
steps:
- name: Get the sources
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- name: Download build artifact
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4
with:
name: NuGet Package
path: ./BuildArtifacts/Packages/NuGet
- name: Install .NET
uses: actions/setup-dotnet@6bd8b7f7774af54e05809fcc5431931b3eb1ddee # v4
- name: Prepare integration tests
uses: ./.github/actions/prepare-integration-test
with:
dotnet-version: ${{ matrix.dotnet }}
- name: Run integration tests
Expand All @@ -81,13 +76,8 @@ jobs:
steps:
- name: Get the sources
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- name: Download build artifact
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4
with:
name: NuGet Package
path: ./BuildArtifacts/Packages/NuGet
- name: Install .NET
uses: actions/setup-dotnet@6bd8b7f7774af54e05809fcc5431931b3eb1ddee # v4
- name: Prepare integration tests
uses: ./.github/actions/prepare-integration-test
with:
dotnet-version: ${{ matrix.dotnet }}
- name: Run integration tests
Expand Down

0 comments on commit 0957443

Please # to comment.