-
Notifications
You must be signed in to change notification settings - Fork 11
43 lines (41 loc) · 1.52 KB
/
dotnet48.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Build CrossComple .net core/.net framework Windows
on: [push]
jobs:
build:
name: Test Windows .net Framework and Core
env:
CI: true
runs-on: windows-2022
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: NuGet/setup-nuget@v2
- uses: microsoft/setup-msbuild@v2
with:
dotnet-version: 4.8
- name: Restore Packages
run: nuget restore Keyczar\Keyczar.sln
- name: Build solution
run: msbuild Keyczar\Keyczar.sln -t:rebuild -property:Configuration=Release
- name: Test Create
uses: josepho0918/vstest-action@0e887de8dcfab5ce3eecaf4ad6320bb9b3ecf633
with:
testAssembly: KeyczarTest*.dll
searchFolder: .\Keyczar\KeyczarTest\bin\Release\*\
runInParallel: true
otherConsoleOptions: /TestCaseFilter:"TestCategory=Create"
platform: x64
resultLogsArtifactName: vs-test-result-logs-part1
- name: Test
uses: josepho0918/vstest-action@0e887de8dcfab5ce3eecaf4ad6320bb9b3ecf633
with:
testAssembly: KeyczarTest*.dll
searchFolder: .\Keyczar\KeyczarTest\bin\Release\*\
runInParallel: true
otherConsoleOptions: /TestCaseFilter:"(TestCategory!=Create)&(TestCategory!=Performance)"
platform: x64
resultLogsArtifactName: vs-test-result-logs-part2
- name: Publish
run:
dotnet nuget push '${{ github.workspace }}\publish\*.nupkg' --source https://nuget.pkg.github.com/ekonbenefits/index.json --api-key ${{ secrets.GITHUB_TOKEN }}