From 399677fc8e9659708cf74c1f63526fbe036e2ec2 Mon Sep 17 00:00:00 2001 From: Laika Date: Mon, 25 Nov 2024 08:48:39 +0100 Subject: [PATCH] chore: Added new GitHub workflow to ensure working tests --- .github/workflows/build-and-test.yml | 29 ++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/build-and-test.yml diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml new file mode 100644 index 0000000..dc82d4e --- /dev/null +++ b/.github/workflows/build-and-test.yml @@ -0,0 +1,29 @@ +name: .NET - Build and test + +on: + push: + branches: ["main"] + + pull_request: + branches: ["main"] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Setup .NET + uses: actions/setup-dotnet@v3 + with: + dotnet-version: 8 + + - name: Restore dependencies + run: dotnet restore + + - name: Build + run: dotnet build --no-restore + + - name: Test + run: dotnet test --no-build --verbosity normal