-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (27 loc) · 807 Bytes
/
Copy pathci.yml
File metadata and controls
30 lines (27 loc) · 807 Bytes
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
29
name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: [windows-latest]
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Setup MSBuild
uses: microsoft/setup-msbuild@v1
- name: Setup VSTest
uses: darenm/Setup-VSTest@v1
- name: Setup NuGet
uses: nuget/setup-nuget@v1
- name: Restore Packages
run: nuget restore MemoryCacheNetFull.sln
- name: Navigate to Workspace
run: cd $GITHUB_WORKSPACE
- name: Build DotNET
run: |
MSBuild.exe MemoryCacheNetFull.sln /p:platform="Any CPU" /p:configuration="Release"
- name: Run Tests
run: vstest.console.exe .\MemoryCacheNetFull.Tests\bin\Release\MemoryCacheNetFull.Tests.dll