workflows: update
This commit is contained in:
@ -3,8 +3,26 @@ run-name: Test MS build
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
Build:
|
||||
runs-on: windows
|
||||
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: 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]
|
||||
|
Reference in New Issue
Block a user