-
Notifications
You must be signed in to change notification settings - Fork 2
43 lines (32 loc) · 953 Bytes
/
build_and_test.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 and tests
on:
push:
# Trigger workflow for commits only, not for tags.
branches:
- '**'
pull_request:
workflow_dispatch:
jobs:
build_and_test:
runs-on: windows-2022
timeout-minutes: 20
steps:
- uses: actions/checkout@v3.1.0
- name: Setup MSBuild
uses: microsoft/setup-msbuild@v1.1.3
- name: Setup VSTest
uses: darenm/Setup-VSTest@v1.2
- name: Setup NuGet
uses: NuGet/setup-nuget@v1.1.1
- name: Restore dependencies
run: nuget restore VSDoxyHighlighter.sln
- name: Build solution
run: msbuild /m /p:Configuration="Release" /p:platform="Any CPU" VSDoxyHighlighter.sln
- name: Upload VSIX file
uses: actions/upload-artifact@v3.1.1
with:
name: ReleaseVSIX
path: VSDoxyHighlighter/bin/Release/*.vsix
if-no-files-found: error
- name: Run tests
run: vstest.console.exe .\Tests\bin\Release\Tests.dll