-
Notifications
You must be signed in to change notification settings - Fork 63
37 lines (36 loc) · 1.2 KB
/
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
name: Test
on:
- push
- pull_request
- workflow_dispatch
env:
DOTNET_CLI_TELEMETRY_OPTOUT: '1'
jobs:
test:
name: Test
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
submodules: true
- uses: actions/setup-dotnet@v2
with:
# https://dotnet.microsoft.com/en-us/download/dotnet
dotnet-version: '6.0.x'
- name: Test LiveSPICE build
shell: pwsh
working-directory: LiveSPICE
run: dotnet publish -c Release --framework net6.0-windows /p:DebugType=None /p:UseSharedCompilation=false /p:UseRazorBuildServer=false
- name: Test LiveSPICEVst build
shell: pwsh
working-directory: LiveSPICEVst
run: dotnet publish -c Release --framework net6.0-windows /p:DebugType=None /p:UseSharedCompilation=false /p:UseRazorBuildServer=false
- name: Run circuit tests
shell: pwsh
working-directory: Tests
run: dotnet run -c Release --framework net6.0-windows test "Circuits\*.schx"
- name: Run examples
shell: pwsh
working-directory: Tests
run: dotnet run -c Release --framework net6.0-windows test "Examples\*.schx"