From f6b665f9a2633798b2317f0d42551ed0c5d0c330 Mon Sep 17 00:00:00 2001 From: Saiyed Shizain Date: Mon, 13 Jul 2026 02:27:12 +0530 Subject: Feat/github-actions: configure GitHub Actions for Go tests (#2) * ci: add github actions --- .github/workflows/test.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/test.yml (limited to '.github') diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..f12a80b --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,29 @@ +name: Go Tests + +on: + push: + branches: + - main + - feat/** + pull_request: + branches: + - main + +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-file: go.mod + + - name: Download dependencies + run: go mod download + + - name: Run tests + run: go test -v ./... -- cgit v1.2.3