From e96fc30020d162bd22b7c5dfdb4d3bc40db80441 Mon Sep 17 00:00:00 2001 From: jyyi1 Date: Mon, 5 Feb 2024 18:39:18 -0500 Subject: [PATCH] ci: add Go unit test CI workflow --- .github/workflows/go_test.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/go_test.yml diff --git a/.github/workflows/go_test.yml b/.github/workflows/go_test.yml new file mode 100644 index 00000000..887b0403 --- /dev/null +++ b/.github/workflows/go_test.yml @@ -0,0 +1,22 @@ +name: Go Test + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: Check out + uses: actions/checkout@v3 + + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: '${{ github.workspace }}/go.mod' + + - name: Unit Test + run: go test -v -race ./...