Create dotnet-build-test.yml
This commit is contained in:
parent
298b3d9a53
commit
8897e03bad
1 changed files with 26 additions and 0 deletions
26
.github/workflows/dotnet-build-test.yml
vendored
Normal file
26
.github/workflows/dotnet-build-test.yml
vendored
Normal file
|
|
@ -0,0 +1,26 @@
|
||||||
|
name: ci build and test
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ "master" ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ "master" ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: windows-latest
|
||||||
|
env:
|
||||||
|
Solution_Name: CharacterRecordsGenerator.sln
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
- name: Add MSBuild to path
|
||||||
|
uses: microsoft/setup-msbuild@v1.1
|
||||||
|
- name: Setup NuGet
|
||||||
|
uses: NuGet/setup-nuget@v1
|
||||||
|
- name: Restore nuget
|
||||||
|
run: nuget restore $env:Solution_Name
|
||||||
|
- name: Build
|
||||||
|
run: msbuild $env:Solution_Name /t:Rebuild -property:Configuration=Release
|
||||||
|
- name: Unit tests
|
||||||
|
run: dotnet test --no-build --verbosity normal
|
||||||
Loading…
Add table
Add a link
Reference in a new issue