From f21fd6d8f3a3a67d9b9f47f63a39c6288b61ac9f Mon Sep 17 00:00:00 2001 From: Cucumberrbob <128094686+Cucumberrbob@users.noreply.github.com> Date: Mon, 17 Feb 2025 22:38:10 +0000 Subject: [PATCH] Add `dotnet test` GitHub Action --- .github/workflows/dotnet-test.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/dotnet-test.yml diff --git a/.github/workflows/dotnet-test.yml b/.github/workflows/dotnet-test.yml new file mode 100644 index 0000000..5d104d3 --- /dev/null +++ b/.github/workflows/dotnet-test.yml @@ -0,0 +1,24 @@ +name: dotnet test + +on: + push: + pull_request: + branches: [ "master" ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Setup .NET + uses: actions/setup-dotnet@v4 + with: + dotnet-version: 9.0.x + - name: Restore dependencies + run: dotnet restore server + - name: Build + run: dotnet build --no-restore server + - name: Test + run: dotnet test --no-build --verbosity normal server