Skip to content

Commit 3054919

Browse files
committed
condition test on new enough sdk
1 parent 3beee8e commit 3054919

File tree

3 files changed

+22
-2
lines changed

3 files changed

+22
-2
lines changed

azure-pipelines.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,28 @@ stages:
7676
demands: ImageOverride -equals 1es-ubuntu-2004-open
7777
containerName: mcr.microsoft.com/dotnet/sdk:9.0
7878

79+
- stage:
80+
displayName: Test Linux (.NET 10)
81+
dependsOn: []
82+
variables:
83+
RoslynTestFileBasedPrograms: 'true'
84+
jobs:
85+
- template: azure-pipelines/test-matrix.yml
86+
parameters:
87+
# Prefer the dotnet from the container.
88+
dotnetVersion: ''
89+
testVSCodeVersion: $(testVSCodeVersion)
90+
installAdditionalLinuxDependencies: true
91+
pool:
92+
name: NetCore-Public
93+
demands: ImageOverride -equals 1es-ubuntu-2004-open
94+
containerName: mcr.microsoft.com/dotnet/sdk:10.0.100-preview7
95+
7996
- stage: Test_Windows_Stage
8097
displayName: Test Windows
8198
dependsOn: []
99+
variables:
100+
RoslynTestFileBasedPrograms: 'true'
82101
jobs:
83102
- template: azure-pipelines/test-matrix.yml
84103
parameters:
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
variables:
22
- name: defaultDotnetVersion
3-
value: '8.0.403'
3+
value: '10.0.100-preview7'

test/lsptoolshost/integrationTests/restore.integration.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ import {
1919
import { describe, beforeAll, beforeEach, afterAll, test, expect, afterEach } from '@jest/globals';
2020
import { CSharpExtensionExports } from '../../../src/csharpExtensionExports';
2121

22-
describe(`Restore Tests`, () => {
22+
const doRunSuite = process.env.RoslynTestFileBasedPrograms == 'true';
23+
(doRunSuite ? describe : describe.skip)(`Restore Tests`, () => {
2324
let exports: CSharpExtensionExports;
2425

2526
beforeAll(async () => {

0 commit comments

Comments
 (0)