-
Notifications
You must be signed in to change notification settings - Fork 50
60 lines (42 loc) · 1.35 KB
/
pr.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: KeeTrayTOTP PR Build
on: [pull_request]
env:
DOTNET_NOLOGO: 1
DOTNET_CLI_TELEMETRY_OPTOUT: 1
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v1.0.2
- name: Setup Nuget.exe
uses: nuget/setup-nuget@v1
- name: nuget restore
run: nuget restore KeeTrayTOTP.sln
- name: MSBuild
run: msbuild KeeTrayTOTP.sln /m
- name: Run tests
# It looks like the dotnet CLI can no longer build net45 projects? see https://github.com/microsoft/msbuild/issues/4704
run: dotnet test --no-build
- name: MSBuild (With Plgx)
run: msbuild KeeTrayTOTP.sln /p:Configuration=ReleasePlgx
- name: Upload plgx
uses: actions/upload-artifact@v1
with:
name: KeeTrayTOTP.plgx
path: KeeTrayTOTP\bin\ReleasePlgx\KeeTrayTOTP.plgx
build-mono:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install xvfb-run
run: sudo apt -y install xvfb
- name: Download nuget.exe
run: wget https://dist.nuget.org/win-x86-commandline/latest/nuget.exe
- name: nuget restore
run: mono nuget.exe restore
- name: MSBuild
run: msbuild /target:build
- name: Run tests
run: xvfb-run dotnet vstest KeeTrayTOTP.Tests/bin/Debug/KeeTrayTOTP.Tests.dll