diff --git a/.github/workflows/dotnetcore.yml b/.github/workflows/dotnetcore.yml new file mode 100644 index 000000000..4e2508284 --- /dev/null +++ b/.github/workflows/dotnetcore.yml @@ -0,0 +1,19 @@ +name: eShopOnWeb Build and Test + +on: [push] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v1 + - name: Setup .NET Core + uses: actions/setup-dotnet@v1 + with: + dotnet-version: 3.1.100 + - name: Build with dotnet + run: dotnet build ./eShopOnWeb.sln --configuration Release + - name: Test with dotnet + run: dotnet test ./eShopOnWeb.sln --configuration Release diff --git a/README.md b/README.md index 39cadbde5..08cdd0777 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +![Build Status](https://github.com/dotnet-architecture/eShopOnWeb/workflows/eShopOnWeb%20Build%20and%20Test/badge.svg) + # Microsoft eShopOnWeb ASP.NET Core Reference Application Sample ASP.NET Core reference application, powered by Microsoft, demonstrating a single-process (monolithic) application architecture and deployment model. If you're new to .NET development, read the [Getting Started for Beginners](https://github.com/dotnet-architecture/eShopOnWeb/wiki/Getting-Started-for-Beginners) guide.