From de4bbe795900340af32d87c3d6ed66c58b8461de Mon Sep 17 00:00:00 2001 From: wjqserver <114663932+WJQSERVER@users.noreply.github.com> Date: Thu, 24 Jul 2025 16:39:48 +0800 Subject: [PATCH] add testflow --- .github/workflows/test.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..d3e55a2 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,24 @@ +name: Go Test + +on: + push: + tags: + - '*' + +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version: '1.24' + + - name: Run tests + run: go test -v ./... + + - name: Run tests race + run: go test -race -v ./...