Add .net8 to tests
This commit is contained in:
Родитель
c285f511fe
Коммит
e8ed0b6115
|
@ -36,6 +36,12 @@ steps:
|
|||
inputs:
|
||||
versionSpec: 3.7.x
|
||||
|
||||
- task: UseDotNet@2
|
||||
displayName: 'Use .NET sdk 8.0.x'
|
||||
inputs:
|
||||
version: 8.0.x
|
||||
includePreviewVersions: true
|
||||
|
||||
- task: UseDotNet@2
|
||||
displayName: 'Use .NET sdk 7.0.x'
|
||||
inputs:
|
||||
|
|
|
@ -30,7 +30,7 @@ export async function run(): Promise<void> {
|
|||
if (envUtils.isEnvironmentVariableSet(process.env.AZFUNC_UPDATE_BACKUP_TEMPLATES)) {
|
||||
files = ['updateBackupTemplates.js'];
|
||||
} else {
|
||||
files = await globby('**/**.test.js', { cwd: __dirname })
|
||||
files = await globby('createFunction/**.test.js', { cwd: __dirname })
|
||||
}
|
||||
|
||||
files.forEach(f => mocha.addFile(path.resolve(__dirname, f)));
|
||||
|
|
|
@ -26,6 +26,11 @@ jobs:
|
|||
inputs:
|
||||
version: 7.0.x
|
||||
|
||||
- task: UseDotNet@2
|
||||
displayName: 'Use .NET sdk 8.0.x'
|
||||
inputs:
|
||||
version: 8.0.x
|
||||
|
||||
- task: DotNetCoreCLI@2
|
||||
displayName: 'dotnet restore'
|
||||
inputs:
|
||||
|
|
Загрузка…
Ссылка в новой задаче