Skip to content

Commit 86cae86

Browse files
committed
Run all integration tests also on GitHub actions
1 parent 038b2ef commit 86cae86

File tree

17 files changed

+151
-6
lines changed

17 files changed

+151
-6
lines changed

.github/workflows/integrationtests.yml

Lines changed: 145 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,64 @@ 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-11, 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@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4
55+
- name: Download build artifact
56+
uses: actions/download-artifact@9c19ed7fe5d278cd354c7dfd5d3b88589c7e2395 # v4
57+
with:
58+
name: NuGet Package
59+
path: ./BuildArtifacts/Packages/NuGet
60+
- name: Install .NET
61+
uses: actions/setup-dotnet@4d6c8fcf3c8f7a60068d26b594648e99df24cee3 # v4
62+
with:
63+
dotnet-version: ${{ matrix.dotnet }}
64+
- name: Run integration tests
65+
run: ./build.sh --verbosity=diagnostic
66+
working-directory: ./tests/Cake.Issues.GitRepository/script-runner/
67+
shell: bash
68+
# Integration Tests Cake.Issues.Markdownlint Cake Scripting
69+
IntegrationTestsMarkdownlintCakeScripting:
70+
name: Integration Tests Cake.Issues.Markdownlint Cake Scripting
71+
needs: Build
72+
strategy:
73+
fail-fast: false
74+
matrix:
75+
os: [
76+
windows-2019, windows-2022,
77+
ubuntu-20.04, ubuntu-22.04,
78+
macos-11, macos-14]
79+
dotnet: [6.x, 7.x, 8.x]
80+
runs-on: ${{ matrix.os }}
81+
steps:
82+
- name: Get the sources
83+
uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4
84+
- name: Download build artifact
85+
uses: actions/download-artifact@9c19ed7fe5d278cd354c7dfd5d3b88589c7e2395 # v4
86+
with:
87+
name: NuGet Package
88+
path: ./BuildArtifacts/Packages/NuGet
89+
- name: Install .NET
90+
uses: actions/setup-dotnet@4d6c8fcf3c8f7a60068d26b594648e99df24cee3 # v4
91+
with:
92+
dotnet-version: ${{ matrix.dotnet }}
93+
- name: Run integration tests
94+
run: ./build.sh --verbosity=diagnostic
95+
working-directory: ./tests/Cake.Issues.Markdownlint/script-runner/
96+
shell: bash
3997
# Integration Tests Cake.Issues.MsBuild Cake Scripting
4098
IntegrationTestsMsBuildCakeScripting:
4199
name: Integration Tests Cake.Issues.MsBuild Cake Scripting
@@ -95,3 +153,90 @@ jobs:
95153
run: ./build.sh --verbosity=diagnostic
96154
working-directory: ./tests/Cake.Issues.PullRequests.GitHubActions/script-runner/
97155
shell: bash
156+
# Integration Tests Cake.Issues.Reporting.Console Cake Scripting
157+
IntegrationTestsReportingConsoleCakeScripting:
158+
name: Integration Tests Cake.Issues.Reporting.Console Cake Scripting
159+
needs: Build
160+
strategy:
161+
fail-fast: false
162+
matrix:
163+
os: [
164+
windows-2019, windows-2022,
165+
ubuntu-20.04, ubuntu-22.04,
166+
macos-11, macos-14]
167+
dotnet: [6.x, 7.x, 8.x]
168+
runs-on: ${{ matrix.os }}
169+
steps:
170+
- name: Get the sources
171+
uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4
172+
- name: Download build artifact
173+
uses: actions/download-artifact@9c19ed7fe5d278cd354c7dfd5d3b88589c7e2395 # v4
174+
with:
175+
name: NuGet Package
176+
path: ./BuildArtifacts/Packages/NuGet
177+
- name: Install .NET
178+
uses: actions/setup-dotnet@4d6c8fcf3c8f7a60068d26b594648e99df24cee3 # v4
179+
with:
180+
dotnet-version: ${{ matrix.dotnet }}
181+
- name: Run integration tests
182+
run: ./build.sh --verbosity=diagnostic
183+
working-directory: ./tests/Cake.Issues.Reporting.Console/script-runner/
184+
shell: bash
185+
# Integration Tests Cake.Issues.Reporting.Generic Cake Scripting
186+
IntegrationTestsReportingGenericCakeScripting:
187+
name: Integration Tests Cake.Issues.Reporting.Generic Cake Scripting
188+
needs: Build
189+
strategy:
190+
fail-fast: false
191+
matrix:
192+
os: [
193+
windows-2019, windows-2022,
194+
ubuntu-20.04, ubuntu-22.04,
195+
macos-11, macos-14]
196+
dotnet: [6.x, 7.x, 8.x]
197+
runs-on: ${{ matrix.os }}
198+
steps:
199+
- name: Get the sources
200+
uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4
201+
- name: Download build artifact
202+
uses: actions/download-artifact@9c19ed7fe5d278cd354c7dfd5d3b88589c7e2395 # v4
203+
with:
204+
name: NuGet Package
205+
path: ./BuildArtifacts/Packages/NuGet
206+
- name: Install .NET
207+
uses: actions/setup-dotnet@4d6c8fcf3c8f7a60068d26b594648e99df24cee3 # v4
208+
with:
209+
dotnet-version: ${{ matrix.dotnet }}
210+
- name: Run integration tests
211+
run: ./build.sh --verbosity=diagnostic
212+
working-directory: ./tests/Cake.Issues.Reporting.Generic/script-runner/
213+
shell: bash
214+
# Integration Tests Cake.Issues.Reporting.Sarif Cake Scripting
215+
IntegrationTestsReportingSarifCakeScripting:
216+
name: Integration Tests Cake.Issues.Reporting.Sarif Cake Scripting
217+
needs: Build
218+
strategy:
219+
fail-fast: false
220+
matrix:
221+
os: [
222+
windows-2019, windows-2022,
223+
ubuntu-20.04, ubuntu-22.04,
224+
macos-11, macos-14]
225+
dotnet: [6.x, 7.x, 8.x]
226+
runs-on: ${{ matrix.os }}
227+
steps:
228+
- name: Get the sources
229+
uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4
230+
- name: Download build artifact
231+
uses: actions/download-artifact@9c19ed7fe5d278cd354c7dfd5d3b88589c7e2395 # v4
232+
with:
233+
name: NuGet Package
234+
path: ./BuildArtifacts/Packages/NuGet
235+
- name: Install .NET
236+
uses: actions/setup-dotnet@4d6c8fcf3c8f7a60068d26b594648e99df24cee3 # v4
237+
with:
238+
dotnet-version: ${{ matrix.dotnet }}
239+
- name: Run integration tests
240+
run: ./build.sh --verbosity=diagnostic
241+
working-directory: ./tests/Cake.Issues.Reporting.Sarif/script-runner/
242+
shell: bash

azure-pipelines.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ stages:
9696
displayName: Integration Tests Cake.Issues.Markdownlint
9797
dependsOn: IntegrationTestsBuildStage
9898
jobs:
99-
- job: TestMarkdownlintJob
100-
displayName: Test
99+
- job: TestMarkdownlintScriptingJob
100+
displayName: Test Cake Scripting
101101
strategy:
102102
matrix:
103103
Windows_Server_2019:
@@ -119,10 +119,10 @@ stages:
119119
- template: .azuredevops/pipelines/templates/steps/install-markdownlint.yml
120120
- template: .azuredevops/pipelines/templates/steps/provide-nuget-packages.yml
121121
- powershell: ./build.ps1 --verbosity=diagnostic
122-
workingDirectory: ./tests/Cake.Issues.Markdownlint
122+
workingDirectory: ./tests/Cake.Issues.Markdownlint/script-runner
123123
displayName: 'Run integration tests'
124-
- publish: $(Build.SourcesDirectory)/tests/Cake.Issues.Markdownlint/output/report.html
125-
artifact: Integration Tests Cake.Issues.Markdownlint $(System.JobName)
124+
- publish: $(Build.SourcesDirectory)/tests/Cake.Issues.Markdownlint/script-runner/output/report.html
125+
artifact: Integration Tests Cake.Issues.Markdownlint Cake Scripting $(System.JobName)
126126
displayName: 'Publish generated reports as build artifact'
127127

128128
- stage: IntegrationTestsMsBuildStage

tests/Cake.Issues.GitRepository/script-runner/build.sh

100644100755
File mode changed.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)