mirror of
https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak.git
synced 2026-12-01 02:52:49 +08:00
Adopt the pinned published TeamSpeak SDK and direct relay routing. Add optional TeamSpeak Query administration with encrypted credentials and separate WebSpeak access, site, operations and skin management. Distribute Discord Voice through the GitHub skin index, preserve skin state during updates, and correct KAAK scaling and screen fullscreen. Validation: 831 tests; backend and frontend builds; five-language UI checks from narrow screens through 4K and local Query fixture actions.
53 lines
1.4 KiB
YAML
53 lines
1.4 KiB
YAML
name: Continuous integration
|
|
|
|
on:
|
|
push:
|
|
branches: [dev, master]
|
|
pull_request:
|
|
workflow_call:
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
verify:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 22.22.2
|
|
cache: npm
|
|
cache-dependency-path: |
|
|
package-lock.json
|
|
web/package-lock.json
|
|
- name: Install dependencies
|
|
run: |
|
|
npm ci --ignore-scripts --no-audit --no-fund
|
|
npm rebuild @discordjs/opus --foreground-scripts --no-audit --no-fund
|
|
npm --prefix web ci --no-audit --no-fund
|
|
- name: Test and build application
|
|
run: npm run verify
|
|
|
|
docker-smoke:
|
|
needs: verify
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: docker/setup-buildx-action@v3
|
|
- name: Build image
|
|
run: docker build --tag webspeak:ci .
|
|
- name: Run health smoke test
|
|
run: |
|
|
set -euo pipefail
|
|
docker run --detach --name webspeak-ci --publish 3040:3040 webspeak:ci
|
|
trap 'docker logs webspeak-ci; docker rm --force webspeak-ci' EXIT
|
|
for attempt in $(seq 1 30); do
|
|
if curl --fail --silent http://127.0.0.1:3040/health | grep -q '"status":"ok"'; then
|
|
exit 0
|
|
fi
|
|
sleep 2
|
|
done
|
|
exit 1
|