Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Integration tests
on: [push, pull_request]
jobs:
integration:
name: Integration tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-go@v6
with:
go-version: stable
# Install prosody's latest release from upstream
- run: sudo wget https://prosody.im/downloads/repos/$(lsb_release -sc)/prosody.sources -O/etc/apt/sources.list.d/prosody.sources
- run: sudo apt update
- run: sudo apt install -y mercurial lua5.4
- run: sudo update-alternatives --set lua-interpreter /usr/bin/lua5.4
- run: sudo apt install -y prosody
# Setup prosody community modules
- run: hg clone https://hg.prosody.im/prosody-modules/ prosody-modules
# Copy mod_auth_any to global prosody modules
- run: sudo cp -R prosody-modules/mod_auth_any /usr/lib/prosody/modules/
# Only one test is run for now
- run: ./tests/test.sh xmpp outgoing-message
# Upload logs when it failed
- run: cat tests/xmpp/setup.log
if: ${{ failure() }}
- run: cat tests/xmpp/matterbridge.log
if: ${{ failure() }}
- run: cat tests/xmpp/xmpp.log
if: ${{ failure() }}
- run: cat tests/xmpp/api.log
if: ${{ failure() }}
6 changes: 3 additions & 3 deletions .github/workflows/development.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- uses: actions/checkout@v5
- uses: actions/setup-go@v6
with:
go-version: 1.22.x
go-version: 1.24.x
- name: golangci-lint
uses: golangci/golangci-lint-action@v8
with:
Expand All @@ -30,8 +30,8 @@ jobs:
test:
strategy:
matrix:
# Test on latest release and v1.22
go-version: [1.22.x, stable]
# Test on latest release and v1.24
go-version: [1.24.x, stable]
runs-on: ubuntu-latest
steps:
- name: Install Go
Expand Down
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,14 @@
/matterbridge.exe

# Exclude configuration file
matterbridge.toml
/matterbridge.toml

# Exclude IDE Files
.vscode

# Ignore vendoring in repository
/vendor

tests/**/*.log
tests/api/api
tests/xmpp/xmpp
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ For more development guidelines, see [docs/development/](docs/development/).

Questions or want to test on your favorite platform? Join us on:

- federated networks: [Gitter][mb-gitter], [Jabber/XMPP][mb-xmpp], [Matrix][mb-matrix]
- federated networks: [Jabber/XMPP][mb-xmpp], [Matrix][mb-matrix]
- non-free centralized networks: [Discord][mb-discord], [Keybase][mb-keybase], [Slack][mb-slack], [Telegram][mb-telegram], [Twitch][mb-twitch]
- self-hostable centralized networks: [IRC][mb-irc], [Mattermost][mb-mattermost], [Rocket.Chat][mb-rocketchat], [Zulip][mb-zulip]

Expand Down
10 changes: 4 additions & 6 deletions bridge/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ type ChannelMembers []ChannelMember

type Protocol struct {
AllowMention []string // discord
AuthCode string // steam
BindAddress string // mattermost, slack // DEPRECATED
Buffer int // api
Charset string // irc
Expand All @@ -97,8 +96,8 @@ type Protocol struct {
Debug bool // general
DebugLevel int // only for irc now
DisableWebPagePreview bool // telegram
EditSuffix string // mattermost, slack, discord, telegram, gitter
EditDisable bool // mattermost, slack, discord, telegram, gitter
EditSuffix string // mattermost, slack, discord, telegram
EditDisable bool // mattermost, slack, discord, telegram
HTMLDisable bool // matrix
IconURL string // mattermost, slack
IgnoreFailureOnStart bool // general
Expand Down Expand Up @@ -159,10 +158,10 @@ type Protocol struct {
StripMarkdown bool // irc
SyncTopic bool // slack
TengoModifyMessage string // general
Team string // mattermost, keybase
Team string // mattermost
TeamID string // msteams
TenantID string // msteams
Token string // gitter, slack, discord, api, matrix
Token string // slack, discord, api, matrix
Topic string // zulip
URL string // mattermost, slack // DEPRECATED
UseAPI bool // mattermost, slack
Expand Down Expand Up @@ -222,7 +221,6 @@ type BridgeValues struct {
Slack map[string]Protocol
SlackLegacy map[string]Protocol
Steam map[string]Protocol
Gitter map[string]Protocol
XMPP map[string]Protocol
Discord map[string]Protocol
Telegram map[string]Protocol
Expand Down
252 changes: 0 additions & 252 deletions bridge/harmony/harmony.go

This file was deleted.

Loading
Loading