Merge pull request #248 from avadev/jwenger/fix-test-proj #110
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: DotNet-RestAPI V2 Build & Test | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
test: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v2 | |
with: | |
dotnet-version: | | |
2.x.x | |
2.2.x | |
3.1.x | |
5.0.x | |
6.0.x | |
8.0.x | |
- name: Setup MSBuild | |
uses: microsoft/setup-msbuild@v1 | |
- name: Restore Tests | |
run: dotnet restore Avalara.AvaTax.RestClient.Test.csproj | |
working-directory: tests | |
- name: Create Assembly Signing Key | |
run: | | |
echo "${{ secrets.ASSEMBLY_SIGNING_KEY }}" > data.b64 && certutil -decode data.b64 Avalara.AvaTax.RestClient.snk | |
working-directory: src | |
- name: Build Tests | |
run: dotnet build Avalara.AvaTax.RestClient.Test.csproj --no-restore --configuration Release | |
working-directory: tests | |
- name: Run Tests | |
run: dotnet test Avalara.AvaTax.RestClient.Test.csproj --no-build --configuration Release | |
env: | |
SANDBOX_USERNAME: ${{ secrets.SANDBOX_USERNAME }} | |
SANDBOX_PASSWORD: ${{ secrets.SANDBOX_PASSWORD }} | |
working-directory: tests |