From 228281b498f07f85eec1864ff4606fcbcb2bbc22 Mon Sep 17 00:00:00 2001 From: shibboleet Date: Mon, 20 Jan 2025 15:28:59 -0500 Subject: [PATCH] Create main.yml --- .github/workflows/main.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..799a1c1 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,31 @@ +name: Build + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Set up .NET + uses: actions/setup-dotnet@v3 + with: + dotnet-version: '8.0' + + - name: Restore dependencies + run: dotnet restore + + - name: Build the project + run: dotnet build --configuration Release + + - name: Run tests + run: dotnet test