From b8d5ad3d4f1af4bc1ab94c64fbb3013012cb217f Mon Sep 17 00:00:00 2001 From: Nils Hanke Date: Fri, 21 Oct 2022 14:27:12 +0200 Subject: [PATCH] Add Windows unit tests for CLI & cdbg/debugd --- .github/workflows/test-unittest.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/workflows/test-unittest.yml b/.github/workflows/test-unittest.yml index f94ce8e27..75f114ae6 100644 --- a/.github/workflows/test-unittest.yml +++ b/.github/workflows/test-unittest.yml @@ -62,3 +62,23 @@ jobs: - name: cdbg/debugd Unit Tests run: go test -race -count=3 ./debugd/... + + test-windows: + runs-on: windows-latest + env: + CTEST_OUTPUT_ON_FAILURE: True + steps: + - name: Checkout + uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # tag=v3.1.0 + + - name: Setup Go environment + uses: actions/setup-go@c4a742cab115ed795e34d4513e2cf7d472deb55f # tag=v3.3.1 + with: + go-version: "1.19.2" + cache: true + + - name: CLI Unit Tests + run: go test -race -count=3 ./cli/... + + - name: cdbg/debugd Unit Tests + run: go test -race -count=3 ./debugd/...