From 9527311a1278fb8de72238013b05e6b8d4e6f0a5 Mon Sep 17 00:00:00 2001 From: DelphicOkami Date: Thu, 19 Mar 2026 01:03:21 +0000 Subject: [PATCH] Adding testing workflow --- .gitea/workflows/test.yml | 41 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 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..8cef72b --- /dev/null +++ b/.gitea/workflows/test.yml @@ -0,0 +1,41 @@ +name: test + +on: + push: + pull_request: + +jobs: + go-test: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Go + uses: actions/setup-go@v5 + with: + go-version: "1.26.x" + + - name: Install just + run: | + sudo apt-get update + sudo apt-get install -y just + + - name: Run tests + run: just test + + - name: Generate coverage + run: just test-coverage + + - name: Code Coverage Report + uses: irongut/CodeCoverageSummary@v1.3.0 + with: + filename: _build/coverage.out + badge: true + fail_below_min: true + format: markdown + hide_branch_rate: true + hide_complexity: false + indicators: true + output: both + thresholds: '60 80' \ No newline at end of file