From c30d7f4f4d317739135c66ac8b1314eed6aa5915 Mon Sep 17 00:00:00 2001 From: Nugra Date: Thu, 19 May 2022 20:58:09 +0700 Subject: [PATCH] feat: add Windows CI Added Windows CI for GitHub Actions Go version: 1.15.x, 1.16.x, 1.17.x, 1.18.x --- .github/workflows/push-check-go-windows.yml | 26 +++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/push-check-go-windows.yml diff --git a/.github/workflows/push-check-go-windows.yml b/.github/workflows/push-check-go-windows.yml new file mode 100644 index 0000000..ffe6d2e --- /dev/null +++ b/.github/workflows/push-check-go-windows.yml @@ -0,0 +1,26 @@ +name: Push Check Go Windows + +on: push + +jobs: + build: + strategy: + matrix: + go-version: [1.15.x, 1.16.x, 1.17.x, 1.18.x] + os: [windows-latest] + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v2 + + - name: Set up Go + uses: actions/setup-go@v3 + with: + go-version: ${{ matrix.go-version }} + + - name: Unit Test + run: go test -v -gcflags -d=checkptr=0 -race -covermode atomic -coverprofile coverage.out ./... + env: + GOMAXPROCS: 4 + + - name: Generic Test + run: go test -v -gcflags -d=checkptr=0 -race -covermode atomic ./generic_test \ No newline at end of file