To use the test environment, use the *Client constructor that includes passing in the apiOrigin, e.g.
FormsClient formsClient = new FormsClient(ACCESS_KEY, SECRET_KEY, TenantName.ONEBLINK_TEST);
- .Net runtime installed (at least one of .Net 6.0, .Net 7.0)
- Install Microsoft DevSkim for inline linting
Create a file called .env
in the root directory with the following values configured:
NOTE: Key secret is available in the 1Blink E2E Tests (DO NOT DELETE) account. Find the matching key based on the id below:
ACCESS_KEY=5cf9d5e60bf82f1100000001
SECRET_KEY=YOUR_SECRET_KEY
By default the tests will run against runtimes .Net 6.0, .Net 7.0 and .Net 8.0
You can modify the <TargetFramework>
value in ./OneBlink.SDK.Tests/OneBlink.SDK.Tests.csProj to the runtime/s you have available eg. net8.0
dotnet test
-
After cloning the repository, checkout
master
branchgit checkout master
-
Ensure you have the latest version of code
git pull
-
Update SDK Version
-
Update the Changelog by replacing
Unreleased
with1.0.1 (YYYY-MM-DD)
-
Update the
<PackageVersion>
tag inOneBlink.SDK.csproj
with1.0.1
-
Update the
<AssemblyVersion>
tag inOneBlink.SDK.csproj
with1.0.1.0
-
Update the
<PackageVersion>
tag inOneBlink.SDK.csproj
with1.0.1-beta.1
-
Update the
<AssemblyVersion>
tag inOneBlink.SDK.csproj
with1.0.1.1
-
-
Push changes to the
master
branchgit add -A git commit -m "[RELEASE] 1.0.1" git push
-
Follow the steps below for automated or manual deployments
- Create a Git Tag to trigger the build and deployment process e.g.
1.0.1
- .Net SDK installed (at least one of .Net 6.0, .Net 7.0)
-
Clone this repository
-
Remove any existing builds locally by deleting the
./OneBlink.SDK/bin
directory -
Build NuGet package:
dotnet pack -c Release
-
Publish NuGet package, replacing
[NUGET_API_KEY]
with an authorised API key:dotnet nuget push ./OneBlink.SDK/bin/Release/OneBlink.SDK.*.nupkg --api-key [NUGET_API_KEY]