From b85a06cf11ea22127397a61b9f64b5ae9c46d8d5 Mon Sep 17 00:00:00 2001 From: ashisgreat22 Date: Sun, 22 Mar 2026 00:11:25 +0100 Subject: [PATCH] ci: add test workflow Runs go test -race -v ./... on push and PRs to main. Co-Authored-By: Claude Opus 4.6 --- .forgejo/workflows/test.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .forgejo/workflows/test.yml diff --git a/.forgejo/workflows/test.yml b/.forgejo/workflows/test.yml new file mode 100644 index 0000000..6b09ea7 --- /dev/null +++ b/.forgejo/workflows/test.yml @@ -0,0 +1,22 @@ +name: Tests + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: https://github.com/actions/checkout@v4 + + - name: Set up Go + uses: https://github.com/actions/setup-go@v5 + with: + go-version: '1.24' + + - name: Test + run: go test -race -v ./...