Skip to content

Commit 2b8df23

Browse files
committed
sytest
1 parent a9b4a8d commit 2b8df23

File tree

1 file changed

+60
-1
lines changed

1 file changed

+60
-1
lines changed

.github/workflows/ci.yml

Lines changed: 60 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,63 @@ jobs:
3131
uses: codecov/codecov-action@v5
3232
with:
3333
token: ${{ secrets.CODECOV_TOKEN }}
34-
34+
35+
sytest:
36+
name: Run a subset of sytest suite
37+
runs-on: ubuntu-24.04
38+
steps:
39+
- uses: actions/checkout@v4
40+
with:
41+
path: homeserver
42+
43+
- uses: actions/checkout@v4
44+
with:
45+
repository: RocketChat/sytest
46+
ref: homeport
47+
path: sytest
48+
49+
# should also cache
50+
- uses: shogo82148/actions-setup-perl@v1
51+
with:
52+
perl-version: '5.34' # NOTE(debdutdeb): my local version
53+
install-modules-with: cpanm
54+
working-directory: sytest
55+
56+
- uses: oven-sh/setup-bun@v2
57+
with:
58+
bun-version: '1.2.0'
59+
60+
- uses: actions/cache@v4
61+
id: cache
62+
with:
63+
path: homeserver/node_modules
64+
key: ${{ hashFiles('homeserver/bun.lockdb') }}
65+
66+
- name: Install deps
67+
if: steps.cache.outputs.cache-hit != 'true'
68+
working-directory: homeserver
69+
run: bun install
70+
71+
72+
- name: Start MongoDB
73+
uses: supercharge/mongodb-github-action@1.12.0
74+
with:
75+
mongodb-version: '6.0'
76+
77+
- name: Start homeserver
78+
shell: bash
79+
working-directory: homeserver
80+
env:
81+
NODE_TLS_REJECT_UNAUTHORIZED: 0
82+
MONGODB_URI: mongodb://localhost:27017/rocket
83+
HOMESERVER_CONFIG_name: localhost:8448
84+
HOMESERVER_CONFIG_port: 8448
85+
run: |
86+
bun run index.ts 2>&1 >/tmp/homeserver.log &
87+
sleep 10
88+
89+
- name: Start test
90+
working-directory: sytest
91+
shell: bash
92+
run: |
93+
./run-tests.pl -I Manual --bind-host 127.0.0.1 tests/50federation/00.prepare.pl tests/50federation/01keys.pl

0 commit comments

Comments
 (0)