Skip to content

Commit b2180d6

Browse files
ci: Start implementing integration tests (xmpp)
1 parent d7ad1da commit b2180d6

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Integration tests
2+
on: [push, pull_request]
3+
jobs:
4+
integration:
5+
name: Integration tests
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v5
9+
- uses: actions/setup-go@v6
10+
with:
11+
go-version: stable
12+
# Install prosody's latest release from upstream
13+
- run: sudo wget https://prosody.im/downloads/repos/$(lsb_release -sc)/prosody.sources -O/etc/apt/sources.list.d/prosody.sources
14+
- run: sudo apt update
15+
- run: sudo apt install -y mercurial lua5.4
16+
- run: sudo update-alternatives --set lua-interpreter /usr/bin/lua5.4
17+
- run: sudo apt install -y prosody
18+
# Setup prosody community modules
19+
- run: hg clone https://hg.prosody.im/prosody-modules/ prosody-modules
20+
# Copy mod_auth_any to global prosody modules
21+
- run: sudo cp -R prosody-modules/mod_auth_any /usr/lib/prosody/modules/
22+
# Only one test is run for now
23+
- run: ./tests/test.sh xmpp outgoing-message
24+
# Upload logs when it failed
25+
- run: cat tests/xmpp/setup.log
26+
if: ${{ failure() }}
27+
- run: cat tests/xmpp/matterbridge.log
28+
if: ${{ failure() }}
29+
- run: cat tests/xmpp/xmpp.log
30+
if: ${{ failure() }}
31+
- run: cat tests/xmpp/api.log
32+
if: ${{ failure() }}

0 commit comments

Comments
 (0)