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