forked from Terminals-Origin/Terminals
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (40 loc) · 1.26 KB
/
main.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
44
45
name: CI
on:
push:
branches: [ '*' ]
pull_request:
branches: [ '*' ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
env:
SLN_FILE_PATH: Source/Terminals.sln
jobs:
build:
# because of legacy dotnet 4.8
runs-on: windows-2019
steps:
- uses: actions/checkout@v3
- name: Setup-msbuild
uses: microsoft/[email protected]
- name: Setup NuGet
uses: NuGet/[email protected]
- name: Restore Packages
run: nuget restore ${{ env.SLN_FILE_PATH }}
- name: Build solution
run: msbuild ${{ env.SLN_FILE_PATH }} -t:rebuild -property:Configuration=Release
- name: Setup VSTest
uses: darenm/[email protected]
- name: Install a SQL Server suite of tools
uses: potatoqualitee/[email protected]
with:
install: localdb
show-log: true
- name: Test
run: vstest.console.exe /logger:"trx;LogFileName=test_results.trx" Source\Tests\bin\Release\Tests.dll
- name: Test Report
uses: dorny/[email protected]
if: success() || failure() # run this step even if previous step failed
with:
name: MSTests
path: TestResults/test_results.trx
reporter: dotnet-trx