From 47a86395e034badaa64d5b08f0e6576a3e19ef13 Mon Sep 17 00:00:00 2001 From: Pim Brouwers Date: Sat, 24 Aug 2024 13:17:28 -0400 Subject: [PATCH] github actions --- .github/workflows/build.yml | 29 +++++++++++++++++++++++++++++ README.md | 2 ++ 2 files changed, 31 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..a2d33e0 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,29 @@ +name: build + +on: + push: + branches: [master] + pull_request: + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + dotnet-version: ['8.0.x'] + steps: + - uses: actions/checkout@v2 + + - name: Setup .NET Core SDK ${{ matrix.dotnet-version }} + uses: actions/setup-dotnet@v3 + with: + dotnet-version: ${{ matrix.dotnet-version }} + + - name: Install dependencies + run: dotnet restore src/Danom + + - name: Build + run: dotnet build src/Danom -c Release + + - name: Test + run: dotnet test test/Danom.Tests -c Release diff --git a/README.md b/README.md index acdf480..bea3a99 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # Danom +[![build](https://github.com/pimbrouwers/Danom/actions/workflows/build.yml/badge.svg)](https://github.com/pimbrouwers/Danom/actions/workflows/build.yml) + Danom is a C# library that provides monadic structures to simplify functional programming patterns in C#. ## Key Features