From 45fb8f5bfd59b0a2cd031ffb863c075c257be4f2 Mon Sep 17 00:00:00 2001 From: Michael McKenna Date: Wed, 17 Apr 2024 23:57:45 +1200 Subject: [PATCH] Create build.yml --- .github/workflows/build.yml | 31 +++++++++++++++++++++++++++++++ 1 file 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..423b025 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,31 @@ +name: Build MultiTenant.AspNetCore library + +on: + push: + branches: + - main + pull_request: + branches: + - main +jobs: + build: + name: Build MultiTenant.AspNetCore library + runs-on: ubuntu-latest + steps: + + - name: 📄 Checkout + uses: actions/checkout@v3 + + - name: 🛠️ Setup .NET SDK + uses: actions/setup-dotnet@v3 + with: + dotnet-version: '8.0.x' + + - name: 🛠️ Restore NuGet packages + run: dotnet restore + + - name: 🚀 Build Solution + run: dotnet build --configuration Release + + - name: 👟 Run tests + run: dotnet test