-
Notifications
You must be signed in to change notification settings - Fork 38
41 lines (39 loc) · 1.19 KB
/
test.yaml
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
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
- 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