From 9fea508592bf6b3ac6636939bd319ad1d5a81b88 Mon Sep 17 00:00:00 2001 From: Pascal Berger Date: Wed, 14 Aug 2024 23:00:27 +0200 Subject: [PATCH 1/2] Add integration test with sparse checkout for Cake.Issues.GitRepository --- .github/workflows/integrationtests.yml | 64 ++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) diff --git a/.github/workflows/integrationtests.yml b/.github/workflows/integrationtests.yml index fa9d5580b..6c4e33242 100644 --- a/.github/workflows/integrationtests.yml +++ b/.github/workflows/integrationtests.yml @@ -36,6 +36,70 @@ jobs: with: name: NuGet Package path: ./BuildArtifacts/Packages/NuGet/ + # Integration Tests Cake.Issues.GitRepository Cake Scripting + IntegrationTestsGitRepositoryCakeScripting: + name: Integration Tests Cake.Issues.GitRepository Cake Scripting + needs: Build + strategy: + fail-fast: false + matrix: + os: [ + windows-2019, windows-2022, + ubuntu-20.04, ubuntu-22.04, + macos-12, macos-14] + dotnet: [6.x, 7.x, 8.x] + runs-on: ${{ matrix.os }} + steps: + - name: Get the sources + uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 + with: + lfs: true + - 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: ${{ matrix.dotnet }} + - name: Run integration tests + run: ./build.sh --verbosity=diagnostic + working-directory: ./tests/Cake.Issues.GitRepository/script-runner/ + shell: bash + # Integration Tests Cake.Issues.GitRepository Cake Scripting with sparse checkout + IntegrationTestsGitRepositoryCakeScriptingSparseCheckout: + name: Integration Tests Cake.Issues.GitRepository Cake Scripting with sparse checkout + needs: Build + strategy: + fail-fast: false + matrix: + os: [ + windows-2019, windows-2022, + ubuntu-20.04, ubuntu-22.04, + macos-12, macos-14] + dotnet: [6.x, 7.x, 8.x] + runs-on: ${{ matrix.os }} + steps: + - name: Get the sources + uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 + with: + lfs: true + sparse-checkout: | + tests/Cake.Issues.GitRepository/script-runner/ + - 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: ${{ matrix.dotnet }} + - name: Run integration tests + run: ./build.sh --verbosity=diagnostic + working-directory: ./tests/Cake.Issues.GitRepository/script-runner/ + shell: bash # Integration Tests Cake.Issues.MsBuild Cake Scripting IntegrationTestsMsBuildCakeScripting: name: Integration Tests Cake.Issues.MsBuild Cake Scripting From 9b5c543076411b4021d9a5c7247ba7ecbff530a2 Mon Sep 17 00:00:00 2001 From: Pascal Berger Date: Tue, 20 Aug 2024 20:37:11 +0200 Subject: [PATCH 2/2] temp --- .github/workflows/integrationtests.yml | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/.github/workflows/integrationtests.yml b/.github/workflows/integrationtests.yml index 6c4e33242..ed959a263 100644 --- a/.github/workflows/integrationtests.yml +++ b/.github/workflows/integrationtests.yml @@ -54,13 +54,8 @@ jobs: uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 with: lfs: true - - 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 @@ -87,13 +82,8 @@ jobs: lfs: true sparse-checkout: | tests/Cake.Issues.GitRepository/script-runner/ - - 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