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 ./...