From 4310ceea1186d3a80953bcffe64241936cfc26ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9A=D0=BE=D0=B1=D0=B5=D0=BB=D0=B5=D0=B2=20=D0=90=D0=BD?= =?UTF-8?q?=D0=B4=D1=80=D0=B5=D0=B9=20=D0=90=D0=BD=D0=B4=D1=80=D0=B5=D0=B5?= =?UTF-8?q?=D0=B2=D0=B8=D1=87?= Date: Tue, 14 Oct 2025 14:09:27 +0500 Subject: [PATCH] Add CI info, run workflow only on version update. --- .gitea/workflows/ci.yml | 20 ++++++++++++++++++++ README.md | 1 + 2 files changed, 21 insertions(+) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index a379645..6f932cb 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -4,6 +4,8 @@ on: push: branches: - '**' + tags: + - 'v*' pull_request: jobs: @@ -31,3 +33,21 @@ jobs: - name: Bench (smoke) run: go test -bench=. -run=^$ ./... + runner-init: + name: Runner Init (on release tag) + runs-on: ubuntu-latest + if: startsWith(github.ref, 'refs/tags/v') + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Setup Go + uses: actions/setup-go@v5 + with: + go-version-file: go.mod + check-latest: true + - name: Warm module cache + run: go mod download + - name: Verify build and tests + run: | + go vet ./... + go test -race ./... diff --git a/README.md b/README.md index 574bb7b..b0e07c2 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ # queue [![Go Reference](https://pkg.go.dev/badge/git.belvedersky.ru/queue.svg)](https://pkg.go.dev/git.belvedersky.ru/queue) +[![CI](https://git.belvedersky.ru/belvedersky/queue/actions/workflows/ci.yml/badge.svg)](https://git.belvedersky.ru/belvedersky/queue/actions) Simple, lightweight, concurrent FIFO queue for Go with optional Dead Letter Queue (DLQ), hooks, rate limiting, and graceful shutdown.