Skip to content

Commit 4881658

Browse files
Merge pull request #200 from avadev/AvaTax-REST-V2-DotNet-SDK-Refactoring
AvaTax REST V2 .NET SDK refactoring
2 parents 5f1ee32 + deaa9d8 commit 4881658

File tree

97 files changed

+2065
-2519
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

97 files changed

+2065
-2519
lines changed

.github/workflows/deploy.yaml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: DotNet-RestAPI V2 Publish to Nuget
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
buildandpublish:
9+
runs-on: windows-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v3
13+
- name: Setup .NET
14+
uses: actions/setup-dotnet@v2
15+
with:
16+
dotnet-version: |
17+
2.x.x
18+
2.2.x
19+
3.1.x
20+
5.0.x
21+
6.0.x
22+
- name: Setup MSBuild
23+
uses: microsoft/setup-msbuild@v1
24+
- name: Restore Tests
25+
run: dotnet restore Avalara.AvaTax.RestClient.Test.csproj
26+
working-directory: tests
27+
- name: Create Assembly Signing Key
28+
run: |
29+
echo "${{ secrets.ASSEMBLY_SIGNING_KEY }}" > data.b64 && certutil -decode data.b64 Avalara.AvaTax.RestClient.snk
30+
working-directory: src
31+
- name: Build Tests
32+
run: dotnet build Avalara.AvaTax.RestClient.Test.csproj --no-restore --configuration Release
33+
working-directory: tests
34+
- name: Run Tests
35+
run: dotnet test Avalara.AvaTax.RestClient.Test.csproj --no-build --configuration Release
36+
env:
37+
SANDBOX_USERNAME: ${{ secrets.SANDBOX_USERNAME }}
38+
SANDBOX_PASSWORD: ${{ secrets.SANDBOX_PASSWORD }}
39+
working-directory: tests
40+
- name: Build Package
41+
run: dotnet build --no-restore --configuration Release
42+
working-directory: src
43+
- name: Pack Package
44+
run: dotnet pack Avalara.AvaTax.RestClient.csproj -p:NuspecFile=Avalara.AvaTax.RestClient.nuspec -o . --no-build --configuration Release
45+
working-directory: src
46+
- name: Publish Package
47+
run: dotnet nuget push Avalara.AvaTax.${VERSION}.nupkg --source https://api.nuget.org/v3/index.json --api-key ${NUGET_API_TOKEN}
48+
env:
49+
NUGET_API_TOKEN: ${{ secrets.NUGET_API_TOKEN }}
50+
VERSION: ${GITHUB_REF#refs/*/}

.github/workflows/test.yaml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: DotNet-RestAPI V2 Build & Test
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
test:
11+
runs-on: windows-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v3
15+
- name: Setup .NET
16+
uses: actions/setup-dotnet@v2
17+
with:
18+
dotnet-version: |
19+
2.x.x
20+
2.2.x
21+
3.1.x
22+
5.0.x
23+
6.0.x
24+
- name: Setup MSBuild
25+
uses: microsoft/setup-msbuild@v1
26+
- name: Restore Tests
27+
run: dotnet restore Avalara.AvaTax.RestClient.Test.csproj
28+
working-directory: tests
29+
- name: Create Assembly Signing Key
30+
run: |
31+
echo "${{ secrets.ASSEMBLY_SIGNING_KEY }}" > data.b64 && certutil -decode data.b64 Avalara.AvaTax.RestClient.snk
32+
working-directory: src
33+
- name: Build Tests
34+
run: dotnet build Avalara.AvaTax.RestClient.Test.csproj --no-restore --configuration Release
35+
working-directory: tests
36+
- name: Run Tests
37+
run: dotnet test Avalara.AvaTax.RestClient.Test.csproj --no-build --configuration Release
38+
env:
39+
SANDBOX_USERNAME: ${{ secrets.SANDBOX_USERNAME }}
40+
SANDBOX_PASSWORD: ${{ secrets.SANDBOX_PASSWORD }}
41+
working-directory: tests

.travis.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.

AvaTax.sln

Lines changed: 0 additions & 102 deletions
This file was deleted.

Avalara.AvaTax.Net20.sln

Lines changed: 0 additions & 34 deletions
This file was deleted.

Avalara.AvaTax.net45.sln

Lines changed: 0 additions & 28 deletions
This file was deleted.

Avalara.AvaTax.net461.sln

Lines changed: 0 additions & 31 deletions
This file was deleted.

Avalara.AvaTax.netstandard11.sln

Lines changed: 0 additions & 28 deletions
This file was deleted.

Avalara.AvaTax.netstandard20.sln

Lines changed: 0 additions & 28 deletions
This file was deleted.

0 commit comments

Comments
 (0)