Skip to content

Commit 38bf0ef

Browse files
committed
Add integration test with sparse checkout for Cake.Issues.GitRepository
1 parent 55b785d commit 38bf0ef

File tree

1 file changed

+64
-0
lines changed

1 file changed

+64
-0
lines changed

.github/workflows/integrationtests.yml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,70 @@ jobs:
3636
with:
3737
name: NuGet Package
3838
path: ./BuildArtifacts/Packages/NuGet/
39+
# Integration Tests Cake.Issues.GitRepository Cake Scripting
40+
IntegrationTestsGitRepositoryCakeScripting:
41+
name: Integration Tests Cake.Issues.GitRepository Cake Scripting
42+
needs: Build
43+
strategy:
44+
fail-fast: false
45+
matrix:
46+
os: [
47+
windows-2019, windows-2022,
48+
ubuntu-20.04, ubuntu-22.04,
49+
macos-12, macos-14]
50+
dotnet: [6.x, 7.x, 8.x]
51+
runs-on: ${{ matrix.os }}
52+
steps:
53+
- name: Get the sources
54+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
55+
with:
56+
lfs: true
57+
- name: Download build artifact
58+
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4
59+
with:
60+
name: NuGet Package
61+
path: ./BuildArtifacts/Packages/NuGet
62+
- name: Install .NET
63+
uses: actions/setup-dotnet@6bd8b7f7774af54e05809fcc5431931b3eb1ddee # v4
64+
with:
65+
dotnet-version: ${{ matrix.dotnet }}
66+
- name: Run integration tests
67+
run: ./build.sh --verbosity=diagnostic
68+
working-directory: ./tests/Cake.Issues.GitRepository/script-runner/
69+
shell: bash
70+
# Integration Tests Cake.Issues.GitRepository Cake Scripting with sparse checkout
71+
IntegrationTestsGitRepositoryCakeScriptingSparseCheckout:
72+
name: Integration Tests Cake.Issues.GitRepository Cake Scripting with sparse checkout
73+
needs: Build
74+
strategy:
75+
fail-fast: false
76+
matrix:
77+
os: [
78+
windows-2019, windows-2022,
79+
ubuntu-20.04, ubuntu-22.04,
80+
macos-12, macos-14]
81+
dotnet: [6.x, 7.x, 8.x]
82+
runs-on: ${{ matrix.os }}
83+
steps:
84+
- name: Get the sources
85+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
86+
with:
87+
lfs: true
88+
sparse-checkout: |
89+
tests/Cake.Issues.GitRepository/script-runner/
90+
- name: Download build artifact
91+
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4
92+
with:
93+
name: NuGet Package
94+
path: ./BuildArtifacts/Packages/NuGet
95+
- name: Install .NET
96+
uses: actions/setup-dotnet@6bd8b7f7774af54e05809fcc5431931b3eb1ddee # v4
97+
with:
98+
dotnet-version: ${{ matrix.dotnet }}
99+
- name: Run integration tests
100+
run: ./build.sh --verbosity=diagnostic
101+
working-directory: ./tests/Cake.Issues.GitRepository/script-runner/
102+
shell: bash
39103
# Integration Tests Cake.Issues.MsBuild Cake Scripting
40104
IntegrationTestsMsBuildCakeScripting:
41105
name: Integration Tests Cake.Issues.MsBuild Cake Scripting

0 commit comments

Comments
 (0)