-
Notifications
You must be signed in to change notification settings - Fork 0
28 lines (28 loc) · 939 Bytes
/
ci.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
name: CI
on: [push, pull_request, workflow_dispatch]
jobs:
etwlib_Unit_Tests:
runs-on: windows-latest
steps:
# setup .NET using setup-dotnet action
- name: Setup .NET
uses: actions/setup-dotnet@v4
- name: checkout code
uses: actions/checkout@v4
- name: Setup MSBuild
uses: microsoft/setup-msbuild@v2
- name: Setup NuGet
uses: nuget/setup-nuget@v2
- uses: actions/cache@v4
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
restore-keys: |
${{ runner.os }}-nuget-
- name: Restore nuget packages
run: nuget restore etwlib.sln
- name: Build Solution
run: |
msbuild.exe etwlib.sln /nologo /nr:false /p:platform="Any CPU" /p:configuration="Release"
- name: Test
run: sudo dotnet test --no-restore --verbosity normal