Our experience right now is pretty bad when tests fail, you get a generic `failed with exit code 1`. This change adds more full-featured integration with GitHub Actions as well as fixes a few minor issues: - We were missing the codecov package on one project - Updates to test SDK - Annotations on failing tests - Each test project as its own status check - Separating a parallelizing steps of the build Co-authored-by: vinayada1 <28875764+vinayada1@users.noreply.github.com> |
||
|---|---|---|
| .github | ||
| docs | ||
| properties | ||
| samples | ||
| src | ||
| test | ||
| .codecov.yml | ||
| .editorconfig | ||
| .gitignore | ||
| CODEOWNERS | ||
| CONTRIBUTING.md | ||
| LICENSE | ||
| README.md | ||
| all.sln | ||
| global.json | ||
README.md
Dapr SDK for .NET
Dapr is a portable, event-driven, serverless runtime for building distributed applications across cloud and edge.
Dapr SDK for .NET allows you to implement the Virtual Actor model, based on the actor design pattern. This SDK can run locally, in a container and in any distributed systems environment.
This repo builds the following packages:
- Dapr.Client
- Dapr.AspNetCore
- Dapr.Actors
- Dapr.Actors.AspNetCore
- Dapr.Extensions.Configuration
Getting Started
Prerequesites
Each project is a normal C# project. At minimum, you need .NET Core SDK 5.0 to build, test, and generate NuGet packages.
macOS/Linux:
On macOS or Linux we recommend Visual Studio Code with the C# Extension. See here for a getting started guide for VS Code and .NET.
Windows:
On Windows, we recommend installing the latest Visual Studio 2019 which will set you up with all the .NET build tools and allow you to open the solution files. Community Edition is free and can be used to build everything here.
Make sure you update Visual Studio to the most recent release.
Build
To build everything and generate NuGet packages, run dotnet cli commands. Binaries and NuGet packages will be dropped in a bin directory at the repo root.
# Build sdk, samples and tests.
dotnet build -c Debug # for release, -c Release
# Run unit-test
dotnet test
# Generate nuget packages in /bin/Debug/nugets
dotnet pack
Each project can also be built individually directly through the CLI or your editor/IDE. You can open the solution file all.sln in repo root to load all sdk, samples and test projects.
Releases
We publish nuget packages to nuget.org for each release.
Using nugets built locally in your project
<RepoRoot> is the path where you cloned this repository. Nuget packages are dropped under /bin/<Debug|Release>/nugets when you build locally.
Examples:
# Add Dapr.Actors nuget package
dotnet add package Dapr.Actors -s <RepoRoot>/bin/<Debug|Release>/nugets
# Add Dapr.Actors.AspNetCore nuget package
dotnet add package Dapr.Actors.AspNetCore -s <RepoRoot>/bin/<Debug|Release>/nugets
Documentation
These articles will help get you started with Dapr runtime and Dapr Actors: