Add user authentication to readme #119
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |