snapshot of https://github.com/centrifugal/centrifugo.git (master, 2026-09-16; blobs > 131072B omitted)
Some checks failed
test / Lint (push) Failing after 3s
test / Test with Go 1.26.8 (push) Failing after 2s

This commit is contained in:
upstream-mirror
2026-09-16 01:17:21 +05:00
commit b352a9a30d
472 changed files with 108375 additions and 0 deletions

3
.github/FUNDING.yml vendored Normal file
View File

@@ -0,0 +1,3 @@
# These are supported funding model platforms
github: centrifugal

32
.github/ISSUE_TEMPLATE/bug_report.md vendored Normal file
View File

@@ -0,0 +1,32 @@
---
name: "\U0001F41BBug report"
about: Create a report to help us improve
title: "[bug] "
labels: ''
assignees: ''
---
**Describe the bug**. A clear and concise description of what the bug is.
...
**Versions**
Centrifugo version is <???>
Client library used is centrifuge-<???> of version <???>
Operating system is <???>
**Steps to Reproduce** How can the bug be triggered?
...
**Expected behavior** What output or behaviour were you expecting instead?
...
**Code Snippets** A minimum viable code snippet can be useful.
```
Your code here.
```

14
.github/ISSUE_TEMPLATE/config.yml vendored Normal file
View File

@@ -0,0 +1,14 @@
blank_issues_enabled: false
contact_links:
- name: 🗨️ GitHub Discussions
url: https://github.com/centrifugal/centrifugo/discussions
about: Ask usage questions, share ideas, and get help from the community. Answers here are searchable and benefit others.
- name: 📨 Telegram community
url: https://t.me/joinchat/ABFVWBE0AhkyyhREoaboXQ
about: Chat with the community — fastest way to get a quick answer.
- name: 🎮 Discord
url: https://discord.gg/tYgADKx
about: Join the Discord server for community chat.
- name: 📖 Documentation & FAQ
url: https://centrifugal.dev/docs/faq
about: Most "how do I…" questions are already answered in the docs and FAQ.

View File

@@ -0,0 +1,17 @@
---
name: "\U0001F4A1Feature proposal"
about: Suggest an idea for this project
title: "[feature] "
labels: ''
assignees: ''
---
**Is your feature request related to a problem? Please describe.**
When I tried to achieve...
**Describe the solution you'd like**.
> What would the feature look like? How would it work? How would it change the API?
...

3
.github/PULL_REQUEST_TEMPLATE.md vendored Normal file
View File

@@ -0,0 +1,3 @@
## Proposed changes
Describe the big picture of your changes here to communicate to the maintainers why we should accept this pull request. If it fixes a bug or resolves a feature request, be sure to link to that issue.

17
.github/dependabot.yml vendored Normal file
View File

@@ -0,0 +1,17 @@
version: 2
updates:
- package-ecosystem: gomod
directory: "/"
schedule:
interval: monthly
ignore:
- dependency-name: github.com/centrifugal/centrifuge # updating manually.
- dependency-name: github.com/mailru/easyjson # updating manually.
groups:
go-packages:
patterns:
- '*'
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: monthly

13
.github/renovate.json vendored Normal file
View File

@@ -0,0 +1,13 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["config:recommended"],
"enabledManagers": ["dockerfile"],
"packageRules": [
{
"description": "Alpine base image: only propose stable MAJOR.MINOR release tags (no edge, RC, patch or datestamp tags).",
"matchDatasources": ["docker"],
"matchPackageNames": ["alpine"],
"allowedVersions": "/^\\d+\\.\\d+$/"
}
]
}

65
.github/workflows/release.yml vendored Normal file
View File

@@ -0,0 +1,65 @@
name: release
on:
push:
tags:
- '*'
jobs:
release:
name: Release with Go ${{ matrix.go-version }}
environment: release
runs-on: ubuntu-latest
strategy:
matrix:
go-version: [1.26.8]
steps:
- name: Install Go
uses: actions/setup-go@v7
with:
go-version: ${{ matrix.go-version }}
- uses: bufbuild/buf-setup-action@v1
with:
version: "1.34.0"
- name: Checkout code
uses: actions/checkout@v7
- name: Set up QEMU
uses: docker/setup-qemu-action@v4
with:
platforms: all
- name: Set up Docker buildx
uses: docker/setup-buildx-action@v4
- name: Login to Docker Hub
uses: docker/login-action@v4
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build DEB and RPM packages
run: misc/scripts/release_package.sh
env:
STATS_ENDPOINT: ${{ secrets.STATS_ENDPOINT }}
STATS_TOKEN: ${{ secrets.STATS_TOKEN }}
- name: Release on Github
uses: goreleaser/goreleaser-action@v5
with:
version: latest
args: release --rm-dist --release-notes=misc/release/notes.md
env:
# note custom secret here since we need access to Centrifugo Homebrew repo.
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
STATS_ENDPOINT: ${{ secrets.STATS_ENDPOINT }}
STATS_TOKEN: ${{ secrets.STATS_TOKEN }}
- name: Release on Packagecloud
env:
PACKAGECLOUD_TOKEN: ${{ secrets.PACKAGECLOUD_TOKEN }}
run: misc/scripts/release_packagecloud.sh
- uses: bufbuild/buf-push-action@v1
with:
buf_token: ${{ secrets.BUF_TOKEN }}

49
.github/workflows/test.yml vendored Normal file
View File

@@ -0,0 +1,49 @@
name: test
on:
push:
tags-ignore:
- '**'
branches:
- '**'
pull_request:
jobs:
golangci:
name: Lint
runs-on: ubuntu-latest
# Prevent duplicate builds on internal PRs.
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
steps:
- uses: actions/checkout@v7
- uses: actions/setup-go@v7
with:
go-version: stable
- name: Read golangci-lint version
id: golangci-lint-version
run: echo "version=$(cat .golangci-lint-version)" >> "$GITHUB_OUTPUT"
- name: golangci-lint
uses: golangci/golangci-lint-action@v9
with:
version: ${{ steps.golangci-lint-version.outputs.version }}
args: --timeout 10m0s --verbose
test:
name: Test with Go ${{ matrix.go-version }}
runs-on: ubuntu-latest
# Prevent duplicate builds on internal PRs.
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
strategy:
matrix:
go-version: [1.26.8]
steps:
- name: Checkout code
uses: actions/checkout@v7
- name: Install Go
uses: actions/setup-go@v7
with:
go-version: ${{ matrix.go-version }}
- name: Start services
run: docker compose up -d --wait
- name: Test
run: make test-integration