2022-07-09 16:33:32 +02:00
|
|
|
name: Run tests on push
|
2022-07-05 00:19:04 +02:00
|
|
|
|
|
|
|
on:
|
|
|
|
push
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2022-07-09 16:33:32 +02:00
|
|
|
name: Run tests
|
2022-07-05 00:19:04 +02:00
|
|
|
runs-on: windows-latest
|
|
|
|
permissions:
|
|
|
|
contents: write
|
|
|
|
|
|
|
|
steps:
|
2022-07-09 17:01:50 +02:00
|
|
|
- name: Install VoiceAttack
|
|
|
|
run: |
|
|
|
|
curl.exe -o VoiceAttackSetup.exe https://voiceattack.com/FileSend.aspx?id=VoiceAttackInstaller64.exe
|
|
|
|
.\VoiceAttackSetup /sp- /verysilent /suppressmsgboxes /norestart /nocloseapplications /norestartapplications /noicons
|
|
|
|
|
2022-07-05 00:19:04 +02:00
|
|
|
- name: Checkout source code
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Setup .Net
|
|
|
|
uses: actions/setup-dotnet@v2
|
|
|
|
with:
|
|
|
|
dotnet-version: '6.0.x'
|
|
|
|
|
|
|
|
- name: Restore dependencies
|
|
|
|
run: dotnet restore
|
|
|
|
|
|
|
|
- name: Build
|
|
|
|
run: dotnet build -c release
|
|
|
|
|
|
|
|
- name: Run tests
|
|
|
|
run: dotnet test
|