Skip to content

Commit 4f0482b

Browse files
authored
Run tests on Ubuntu 24 (#751)
1 parent 712938f commit 4f0482b

10 files changed

+35
-4
lines changed

.azuredevops/pipelines/templates/stages/build-for-integration-tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ stages:
88
- job: CreateNuGetPackagesJob
99
displayName: Create NuGet Packages
1010
pool:
11+
# Run on Ubuntu 22, since Ubuntu 24.04 does not have Mono installed, which is Required for Cake.Recipe and separate Mono installation requires more time.
1112
vmImage: 'ubuntu-22.04'
1213
steps:
1314
- template: ../steps/install-required-dotnet-versions-for-building.yml

.azuredevops/pipelines/templates/stages/integration-tests-git-repository.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ stages:
2121
imageName: 'ubuntu-20.04'
2222
Ubuntu_22_04:
2323
imageName: 'ubuntu-22.04'
24+
Ubuntu_24_04:
25+
imageName: 'ubuntu-24.04'
2426
pool:
2527
vmImage: $(imageName)
2628
steps:

.azuredevops/pipelines/templates/stages/integration-tests-markdownlint.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ stages:
2121
imageName: 'ubuntu-20.04'
2222
Ubuntu_22_04:
2323
imageName: 'ubuntu-22.04'
24+
Ubuntu_24_04:
25+
imageName: 'ubuntu-24.04'
2426
pool:
2527
vmImage: $(imageName)
2628
steps:

.azuredevops/pipelines/templates/stages/integration-tests-msbuild.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ stages:
2121
imageName: 'ubuntu-20.04'
2222
Ubuntu_22_04:
2323
imageName: 'ubuntu-22.04'
24+
Ubuntu_24_04:
25+
imageName: 'ubuntu-24.04'
2426
pool:
2527
vmImage: $(imageName)
2628
steps:

.azuredevops/pipelines/templates/stages/integration-tests-reporting-console.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ stages:
2121
imageName: 'ubuntu-20.04'
2222
Ubuntu_22_04:
2323
imageName: 'ubuntu-22.04'
24+
Ubuntu_24_04:
25+
imageName: 'ubuntu-24.04'
2426
pool:
2527
vmImage: $(imageName)
2628
steps:
@@ -45,6 +47,8 @@ stages:
4547
imageName: 'ubuntu-20.04'
4648
Ubuntu_22_04:
4749
imageName: 'ubuntu-22.04'
50+
Ubuntu_24_04:
51+
imageName: 'ubuntu-24.04'
4852
pool:
4953
vmImage: $(imageName)
5054
steps:

.azuredevops/pipelines/templates/stages/integration-tests-reporting-generic.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ stages:
2121
imageName: 'ubuntu-20.04'
2222
Ubuntu_22_04:
2323
imageName: 'ubuntu-22.04'
24+
Ubuntu_24_04:
25+
imageName: 'ubuntu-24.04'
2426
pool:
2527
vmImage: $(imageName)
2628
steps:
@@ -48,6 +50,8 @@ stages:
4850
imageName: 'ubuntu-20.04'
4951
Ubuntu_22_04:
5052
imageName: 'ubuntu-22.04'
53+
Ubuntu_24_04:
54+
imageName: 'ubuntu-24.04'
5155
pool:
5256
vmImage: $(imageName)
5357
steps:

.azuredevops/pipelines/templates/stages/integration-tests-reporting-sarif.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ stages:
2121
imageName: 'ubuntu-20.04'
2222
Ubuntu_22_04:
2323
imageName: 'ubuntu-22.04'
24+
Ubuntu_24_04:
25+
imageName: 'ubuntu-24.04'
2426
pool:
2527
vmImage: $(imageName)
2628
steps:
@@ -48,6 +50,8 @@ stages:
4850
imageName: 'ubuntu-20.04'
4951
Ubuntu_22_04:
5052
imageName: 'ubuntu-22.04'
53+
Ubuntu_24_04:
54+
imageName: 'ubuntu-24.04'
5155
pool:
5256
vmImage: $(imageName)
5357
steps:
@@ -75,6 +79,8 @@ stages:
7579
imageName: 'ubuntu-20.04'
7680
Ubuntu_22_04:
7781
imageName: 'ubuntu-22.04'
82+
Ubuntu_24_04:
83+
imageName: 'ubuntu-24.04'
7884
pool:
7985
vmImage: $(imageName)
8086
steps:
@@ -102,6 +108,8 @@ stages:
102108
imageName: 'ubuntu-20.04'
103109
Ubuntu_22_04:
104110
imageName: 'ubuntu-22.04'
111+
Ubuntu_24_04:
112+
imageName: 'ubuntu-24.04'
105113
pool:
106114
vmImage: $(imageName)
107115
steps:

.azuredevops/pipelines/templates/stages/unit-tests.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,16 @@ stages:
1212
Windows:
1313
imageName: 'windows-2022'
1414
Ubuntu:
15-
imageName: 'ubuntu-22.04'
15+
imageName: 'ubuntu-24.04'
1616
macOS:
1717
imageName: 'macOS-13'
1818
pool:
1919
vmImage: $(imageName)
2020
steps:
2121
- template: ../steps/install-required-dotnet-versions-for-building.yml
22+
# Ubuntu 24.04 does not have Mono installed, which is Required for Cake.Recipe
23+
- bash: sudo apt-get install mono-complete
24+
condition: eq(variables['imageName'], 'ubuntu-24.04')
25+
displayName: 'Install Mono'
2226
- bash: ./build.sh --target=Test
2327
displayName: 'Run Unit Tests'

.github/workflows/integrationtests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
matrix:
4646
os: [
4747
windows-2019, windows-2022,
48-
ubuntu-20.04, ubuntu-22.04,
48+
ubuntu-20.04, ubuntu-22.04, ubuntu-24.04,
4949
macos-13, macos-14]
5050
dotnet: [6.x, 7.x, 8.x]
5151
runs-on: ${{ matrix.os }}
@@ -69,7 +69,7 @@ jobs:
6969
matrix:
7070
os: [
7171
windows-2019, windows-2022,
72-
ubuntu-20.04, ubuntu-22.04,
72+
ubuntu-20.04, ubuntu-22.04, ubuntu-24.04,
7373
macos-13, macos-14]
7474
dotnet: [6.x, 7.x, 8.x]
7575
runs-on: ${{ matrix.os }}

.github/workflows/unittests.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
matrix:
1818
os: [
1919
windows-2019, windows-2022,
20-
ubuntu-20.04, ubuntu-22.04,
20+
ubuntu-20.04, ubuntu-22.04, ubuntu-24.04,
2121
# Cake.Recipe currently does not support macOS 14 (M1)
2222
macos-13]
2323
runs-on: ${{ matrix.os }}
@@ -35,6 +35,10 @@ jobs:
3535
6.x
3636
7.x
3737
8.x
38+
# Ubuntu 24.04 does not have Mono installed, which is Required for Cake.Recipe
39+
- name: Install Mono
40+
if: ${{ matrix.os == 'ubuntu-24.04' }}
41+
run: sudo apt-get install mono-complete
3842
- name: Test
3943
run: ./build.sh --target=Test
4044
shell: bash

0 commit comments

Comments
 (0)