-
Notifications
You must be signed in to change notification settings - Fork 114
38 lines (34 loc) · 1.38 KB
/
build.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
name: Build
on:
pull_request:
push:
branches: [ master, develop ]
jobs:
build:
runs-on: windows-2019
steps:
- uses: actions/checkout@v2
- name: Setup MS Build
uses: microsoft/[email protected]
- name: Setup VSTest
uses: darenm/Setup-VSTest@v1
- name: Restore dependencies
run: nuget restore pusher-dotnet-client.sln
- name: Build
run: msbuild /p:deterministic=true /p:msbuildArchitecture=x64 /p:configuration=Release pusher-dotnet-client.sln
- name: Test
env:
PUSHER_APP_ID: ${{ secrets.CI_APP_ID }}
PUSHER_APP_KEY: ${{ secrets.CI_APP_KEY }}
PUSHER_APP_SECRET: ${{ secrets.CI_APP_SECRET }}
PUSHER_APP_CLUSTER: ${{ secrets.CI_APP_CLUSTER }}
run: vstest.console.exe /Parallel /Platform:x64 "./PusherClient.Tests/bin/Release/net45/PusherClient.Tests.dll" /TestAdapterPath:"./PusherClient.Tests/bin/Release/net45"
- name: Write code signing key
env:
CI_CODE_SIGN_KEY: ${{ secrets.CI_CODE_SIGN_KEY }}
run: |
./StrongName/WritePusherKey.ps1
- name: Test strong name signing
run: msbuild /p:SignAssembly=true /p:deterministic=true /p:msbuildArchitecture=x64 /p:configuration=Release pusher-dotnet-client.sln
- name: Test pack with strong named assembly
run: msbuild /t:Pack /p:SignAssembly=true /p:configuration=release PusherClient/PusherClient.csproj