From 120b713fb48e5014f5881ce66296075a6d12bfb1 Mon Sep 17 00:00:00 2001 From: Jannis Heydemann Date: Wed, 1 Apr 2026 20:18:30 +0200 Subject: [PATCH] added tests --- .gitea/workflows/test.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .gitea/workflows/test.yaml diff --git a/.gitea/workflows/test.yaml b/.gitea/workflows/test.yaml new file mode 100644 index 0000000..9144515 --- /dev/null +++ b/.gitea/workflows/test.yaml @@ -0,0 +1,24 @@ +name: Bot Unit Tests + +on: + push: + branches: [ "main", "master", "dev" ] + pull_request: + branches: [ "main", "master" ] + +jobs: + run-tests: + # This MUST match the label you defined in your Docker Stack + runs-on: go-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Install dependencies + run: go mod tidy + + - name: Run Go Tests + # -v gives us verbose output so we see exactly what fails + # ./... runs tests in main and db_management + run: go test ./... -v \ No newline at end of file