From ecf933db6c24eba052150fd02592c08fee57cfb8 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 22 May 2026 07:50:02 +0000 Subject: [PATCH] Add unit test workflow Agent-Logs-Url: https://github.com/roy-t/CapriKit/sessions/5f09180e-9a85-4812-a0fa-412d069a83e7 Co-authored-by: roy-t <623634+roy-t@users.noreply.github.com> --- .github/workflows/unit-tests.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/unit-tests.yml diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml new file mode 100644 index 0000000..e613d20 --- /dev/null +++ b/.github/workflows/unit-tests.yml @@ -0,0 +1,31 @@ +name: Unit Tests + +on: + push: + branches: + - main + pull_request: + branches: + - main + +permissions: + contents: read + +jobs: + test: + name: Run unit tests + if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }} + runs-on: windows-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4.2.2 + + - name: Setup .NET + uses: actions/setup-dotnet@v4.3.1 + with: + global-json-file: global.json + + - name: Run unit tests + shell: pwsh + run: dotnet test