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