From 85f42c270cf4bc365f92b777f6563943eed81d42 Mon Sep 17 00:00:00 2001 From: Pascal Berger Date: Wed, 14 Aug 2024 23:00:27 +0200 Subject: [PATCH] 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 ac65a8d34..d3572ca1e 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