/
test.yml
40 lines (32 loc) · 830 Bytes
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
schedules:
- cron: "0 12 * * *"
branches:
include:
- main
always: true
strategy:
matrix:
macos-latest:
imageName: macos-latest
ubuntu-latest:
imageName: ubuntu-latest
windows-latest:
imageName: windows-latest
pool:
vmImage: $(imageName)
steps:
- task: UseDotNet@2
displayName: Setup .NET
inputs:
version: 8.0.x
- script: dotnet restore
displayName: Restore dependencies
- script: dotnet build --no-restore
displayName: Build
- script: npx --yes --loglevel info azurite --version
displayName: Install Azurite
# use bash even on Windows to run Azurite in the background (& for asynchronous bash command)
- bash: npx --yes azurite --silent --inMemoryPersistence &
displayName: Start Azurite
- script: dotnet test --no-build --verbosity normal
displayName: Test