From aff508fb33d42feb08e9475144eb96c543d3a856 Mon Sep 17 00:00:00 2001 From: ahyalfan Date: Sun, 13 Jul 2025 03:20:14 +0700 Subject: [PATCH] chore: tambahkan workflow untuk pengujian di windows --- .github/workflows/golang_test.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/workflows/golang_test.yml b/.github/workflows/golang_test.yml index 93356be..f8cc4bc 100644 --- a/.github/workflows/golang_test.yml +++ b/.github/workflows/golang_test.yml @@ -20,3 +20,23 @@ jobs: run: make test - name: unittesting dengan race-condition run: make test-race + windows_tests: + runs-on: windows-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup Go + uses: actions/setup-go@v5 + with: + go-version: '^1.18' + + - name: Run unit tests (PowerShell) + shell: pwsh + run: | + go test -v ./tests/... + + - name: Run race detector (PowerShell) + shell: pwsh + run: | + go test -race ./tests/...