-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Creating CI action * Fix test project dll path * Adding more tests
- Loading branch information
1 parent
7b1c54c
commit 9e4a8ff
Showing
29 changed files
with
1,882 additions
and
1,510 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,24 +28,38 @@ jobs: | |
|
||
# Setup NuGet | ||
- name: Setup NuGet.exe | ||
uses: NuGet/[email protected].2 | ||
uses: NuGet/[email protected].5 | ||
|
||
# Restore NuGet packages | ||
- name: Restore NuGet packages | ||
run: nuget restore px-dotnet.sln | ||
|
||
# Build Solution | ||
- name: Build Solution | ||
run: msbuild px-dotnet.sln /p:Configuration=Release | ||
run: msbuild px-dotnet.sln /p:Configuration=Debug | ||
|
||
# Setup VSTest.console.exe | ||
- name: Setup VSTest.console.exe | ||
uses: darenm/Setup-VSTest@v1 | ||
|
||
# Run Tests | ||
- name: Run Tests | ||
run: vstest.console.exe MercadoPagoSDK.Test/bin/Release/MercadoPagoSDK.Test.dll /TestAdapterPath:packages/NUnit3TestAdapter.3.16.1 | ||
run: | | ||
./packages/OpenCover.4.7.922/tools/OpenCover.Console.exe ` | ||
-target:"vstest.console.exe" ` | ||
-targetargs:"MercadoPagoSDK.Test/bin/Debug/MercadoPagoSDK.Test.dll /TestAdapterPath:packages/NUnit3TestAdapter.3.16.1" ` | ||
-filter:"+[*]*MercadoPago.Resources.* -[*]*Disbursement -[*]*DiscountCampaign -[*]*OAuth -[*]*Plan -[*]*Preapproval -[*]*Subscription" ` | ||
-mergebyhash ` | ||
-skipautoprops ` | ||
-register ` | ||
-output:"coverage.xml" | ||
env: | ||
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }} | ||
PUBLIC_KEY: ${{ secrets.PUBLIC_KEY }} | ||
EMAIL: ${{ secrets.USER_EMAIL }} | ||
|
||
# Upload coverage result | ||
- name: Upload Coverage | ||
uses: codecov/codecov-action@v1 | ||
with: | ||
file: ./coverage.xml |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<configuration> | ||
<appSettings> | ||
<add key="ClientSecret" value="CLIENT_SECRET" /> | ||
<add key="ClientId" value="CLIENT_ID" /> | ||
<add key="AccessToken" value="ACCESS_TOKEN" /> | ||
<add key="AppId" value="APP_ID" /> | ||
<add key="RequestsTimeout" value="20" /> | ||
<add key="RequestsRetries" value="2" /> | ||
<add key="ProxyHostName" value="proxy" /> | ||
<add key="ProxyPort" value="8080" /> | ||
<add key="ProxyUsername" value="user" /> | ||
<add key="ProxyPassword" value="password" /> | ||
</appSettings> | ||
</configuration> |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.