Skip to content

Commit

Permalink
feat: mumble integration initial
Browse files Browse the repository at this point in the history
  • Loading branch information
garrappachc committed Dec 23, 2024
1 parent cf77056 commit 3020432
Show file tree
Hide file tree
Showing 48 changed files with 807 additions and 17 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,21 @@ jobs:
- uses: pnpm/action-setup@v2
with:
version: 8

- name: Start mumble server
run: |
docker run \
--rm --detach \
--name mumble-server \
--network=${{ job.services.mongo.network }} \
-p 64738:64738/tcp \
-p 64738:64738/udp \
-e MUMBLE_CONFIG_AUTOBAN_ATTEMPTS=0 \
-e MUMBLE_SUPERUSER_PASSWORD=123456 \
--volume ${{ github.workspace }}/tests/mumble-data:/data \
--user root \
mumblevoip/mumble-server:latest
- uses: actions/setup-node@v4
with:
node-version: 20
Expand Down Expand Up @@ -161,6 +176,7 @@ jobs:
env:
STEAM_USERNAME: ${{ secrets.TEST_USER_USERNAME }}
STEAM_PASSWORD: ${{ secrets.TEST_USER_PASSWORD }}
TEST_MUMBLE_SERVER_HOST: 'mongo'

- name: Stop app
if: ${{ always() }}
Expand Down
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile
RUN pnpm run build

FROM base
RUN apt update && apt install -y --no-install-recommends openssl
COPY package.json /app
COPY --from=prod-deps /app/node_modules /app/node_modules
COPY --from=build /app/dist /app/dist
Expand Down
10 changes: 10 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,15 @@ services:
profiles:
- dev

mumble:
image: mumblevoip/mumble-server:latest
environment:
- MUMBLE_SUPERUSER_PASSWORD=123456
ports:
- 64738:64738/tcp
- 64738:64738/udp
volumes:
- ./tests/mumble-data/:/data:rw

volumes:
mongo:
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"@kitajs/ts-html-plugin": "4.1.1",
"@tailwindcss/typography": "0.5.15",
"@tf2pickup-org/serveme-tf-client": "0.1.2",
"@tf2pickup-org/mumble-client": "0.8.2",
"async-mutex": "0.5.0",
"autoprefixer": "10.4.20",
"country-flag-icons": "1.5.13",
Expand All @@ -48,6 +49,8 @@
"mongodb": "6.12.0",
"nanoid": "5.0.9",
"openid": "2.0.12",
"package-up": "5.0.0",
"pem": "1.14.8",
"pino": "9.5.0",
"postcss": "8.4.49",
"postcss-import": "16.1.0",
Expand All @@ -70,6 +73,7 @@
"@types/lodash-es": "4.17.12",
"@types/node": "22.10.2",
"@types/openid": "2.0.5",
"@types/pem": "1.14.4",
"@types/postcss-import": "14.0.3",
"@types/steamid": "2.0.3",
"@types/ws": "8.5.13",
Expand Down
108 changes: 108 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/admin/discord/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { z } from 'zod'
import { standardAdminPage } from '../plugins/standard-admin-page'
import { standardAdminPage } from '../standard-admin-page'
import { DiscordPage } from './views/html/discord.page'

export default standardAdminPage({
Expand Down
Loading

0 comments on commit 3020432

Please sign in to comment.