From 79ca282a6407d8093c600183b7752a3125d58c6d Mon Sep 17 00:00:00 2001 From: Daniel Cronqvist Date: Sat, 17 Aug 2024 21:28:38 +0200 Subject: [PATCH] Add automatic test runs on PRs --- .github/workflows/tests.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/tests.yml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..90c7e5a --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,22 @@ +on: + pull_request: + branches: + - master + - dev + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Set up .NET + uses: actions/setup-dotnet@v4 + with: + dotnet-version: 8.0.x + - name: Restore dependencies + run: dotnet restore + - name: Build + run: dotnet build --no-restore + - name: Test + run: dotnet test --no-build --verbosity normal + \ No newline at end of file