From 1c6b2f712fb6d463ce3fe97637683a79425a9ad4 Mon Sep 17 00:00:00 2001 From: Roy Crihfield Date: Wed, 3 Jul 2024 16:37:41 +0800 Subject: [PATCH] add CT workflow --- .gitea/workflows/test.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .gitea/workflows/test.yml diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml new file mode 100644 index 0000000..0f5fc8b --- /dev/null +++ b/.gitea/workflows/test.yml @@ -0,0 +1,21 @@ +name: Test + +on: + pull_request: + branches: '*' + push: + branches: + - main + +jobs: + test: + name: Run unit tests + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-go@v3 + with: + go-version-file: go.mod + check-latest: true + - name: Run unit tests + run: go test -v ./...