From ad5a311cb7994d9db5aaaf6572639cf8b286e82d Mon Sep 17 00:00:00 2001 From: Alex Hyett Date: Mon, 10 Jul 2023 11:36:27 +0100 Subject: [PATCH] Add unit test workflow --- .github/workflows/build-and-test.yml | 20 ++++++++++++++++++++ 1 file changed, 20 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..47ff4ef --- /dev/null +++ b/.github/workflows/build-and-test.yml @@ -0,0 +1,20 @@ +name: Build and Test + +on: [push] + +jobs: + build: + + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Setup dotnet + uses: actions/setup-dotnet@v3 + with: + dotnet-version: '7.0.x' + - name: Install dependencies + run: dotnet restore + - name: Build + run: dotnet build + - name: Run Unit Tests + run: dotnet test --filter Unit --no-restore --verbosity normal \ No newline at end of file