Files
elwig/.gitea/workflows/test.yaml
Lorenz Stechauner b196cb25d2
All checks were successful
Test MS build / Test (push) Successful in 55s
Test MS build / Build (Release, x64) (push) Successful in 2m13s
workflows/test: add Build Elwig
2023-11-20 23:51:26 +01:00

46 lines
1.5 KiB
YAML

name: Test MS build
run-name: Test MS build
on: [push]
jobs:
test:
name: Test
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup MSBuild
uses: microsoft/setup-msbuild@v1.1
- name: Setup NuGet
uses: nuget/setup-nuget@v1
- name: Restore NuGet packages
shell: powershell
run: $(& nuget restore Elwig.sln; $a=$lastexitcode) | findstr x*; exit $a
- name: Build Elwig
shell: powershell
run: $(& msbuild -verbosity:quiet Elwig/Elwig.csproj -property:Configuration=Debug; $a=$lastexitcode) | findstr x*; exit $a
- name: Run Tests
shell: powershell
run: $(& dotnet test Tests; $a=$lastexitcode) | findstr x*; exit $a
build:
name: Build
needs: [test]
runs-on: windows-latest
strategy:
matrix:
configuration: [Release]
platform: [x64]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup MSBuild
uses: microsoft/setup-msbuild@v1.1
- name: Setup NuGet
uses: nuget/setup-nuget@v1
- name: Restore NuGet packages
shell: powershell
run: $(& nuget restore Elwig.sln; $a=$lastexitcode) | findstr x*; exit $a
- name: Build Installer
shell: powershell
run: $(& msbuild -verbosity:quiet Installer/Installer.wixproj -property:Configuration=${{ matrix.configuration }} -property:Platform=${{ matrix.platform }}; $a=$lastexitcode) | findstr x*; exit $a