chore: replace all mana-core-auth references with mana-auth

Update docker-compose (dev + macmini), CI/CD workflows, Prometheus,
package.json scripts, env generation, database setup, CODEOWNERS,
and dependabot to reference the new Hono-based mana-auth service.
Delete zombie mana-core-auth directory (already removed from Git).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Till JS 2026-03-28 18:05:31 +01:00
parent e7bcb230be
commit 099a40bbd1
14 changed files with 70 additions and 97 deletions

View file

@ -4,7 +4,7 @@
# Manual Trigger: workflow_dispatch for on-demand test runs
# Features:
# - Integration tests (E2E flows)
# - mana-core-auth service tests with coverage
# - mana-auth service tests with coverage
# - Database setup/teardown
# - Discord notifications (always sent on success or failure)
@ -38,9 +38,9 @@ env:
COVERAGE_THRESHOLD: ${{ github.event.inputs.coverage_threshold || '80' }}
jobs:
# Job 1: Test mana-core-auth with coverage
test-mana-core-auth:
name: Test mana-core-auth
# Job 1: Test mana-auth with coverage
test-mana-auth:
name: Test mana-auth
runs-on: ubuntu-latest
services:
@ -90,13 +90,13 @@ jobs:
run: pnpm run build:packages
- name: Setup test database
working-directory: services/mana-core-auth
working-directory: services/mana-auth
env:
DATABASE_URL: postgresql://manacore:testpassword@localhost:5432/manacore
run: pnpm run db:migrate
- name: Run tests with coverage
working-directory: services/mana-core-auth
working-directory: services/mana-auth
env:
DATABASE_URL: postgresql://manacore:testpassword@localhost:5432/manacore
REDIS_URL: redis://localhost:6379
@ -114,16 +114,16 @@ jobs:
if: always()
uses: actions/upload-artifact@v4
with:
name: coverage-mana-core-auth
path: services/mana-core-auth/coverage
name: coverage-mana-auth
path: services/mana-auth/coverage
retention-days: 30
- name: Check coverage threshold
working-directory: services/mana-core-auth
working-directory: services/mana-auth
run: |
if [ -f "coverage/coverage-summary.json" ]; then
COVERAGE=$(node -e "const c = require('./coverage/coverage-summary.json'); console.log(c.total.lines.pct)")
echo "Coverage for mana-core-auth: ${COVERAGE}%"
echo "Coverage for mana-auth: ${COVERAGE}%"
if (( $(echo "$COVERAGE < $COVERAGE_THRESHOLD" | bc -l) )); then
echo "::error::Coverage ${COVERAGE}% is below threshold ${COVERAGE_THRESHOLD}%"
@ -183,7 +183,7 @@ jobs:
run: pnpm run build:packages
- name: Setup databases for integration tests
working-directory: services/mana-core-auth
working-directory: services/mana-auth
env:
DATABASE_URL: postgresql://manacore:testpassword@localhost:5432/manacore
run: pnpm run db:migrate
@ -197,7 +197,7 @@ jobs:
JWT_AUDIENCE: manacore
run: |
# Run auth integration tests
cd services/mana-core-auth
cd services/mana-auth
if [ -d "test/integration" ]; then
pnpm run test:e2e || pnpm run test -- test/integration
fi
@ -207,13 +207,13 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: integration-test-results
path: services/mana-core-auth/test-results
path: services/mana-auth/test-results
retention-days: 30
# Job 3: Always send Discord notification (success or failure)
notify:
name: Discord Notification
needs: [test-mana-core-auth, test-integration]
needs: [test-mana-auth, test-integration]
if: always()
runs-on: ubuntu-latest
@ -224,15 +224,15 @@ jobs:
- name: Download coverage summary
uses: actions/download-artifact@v4
with:
name: coverage-mana-core-auth
path: coverage-mana-core-auth
name: coverage-mana-auth
path: coverage-mana-auth
continue-on-error: true
- name: Check test results
id: check
run: |
# Check if both jobs succeeded
AUTH_STATUS="${{ needs.test-mana-core-auth.result }}"
AUTH_STATUS="${{ needs.test-mana-auth.result }}"
INTEGRATION_STATUS="${{ needs.test-integration.result }}"
if [ "$AUTH_STATUS" = "success" ] && [ "$INTEGRATION_STATUS" = "success" ]; then
@ -249,8 +249,8 @@ jobs:
echo "run_url=$RUN_URL" >> $GITHUB_OUTPUT
# Get coverage if available
if [ -f "coverage-mana-core-auth/coverage-summary.json" ]; then
COVERAGE=$(node -e "const c = require('./coverage-mana-core-auth/coverage-summary.json'); console.log(c.total.lines.pct)")
if [ -f "coverage-mana-auth/coverage-summary.json" ]; then
COVERAGE=$(node -e "const c = require('./coverage-mana-auth/coverage-summary.json'); console.log(c.total.lines.pct)")
echo "coverage=${COVERAGE}%" >> $GITHUB_OUTPUT
else
echo "coverage=N/A" >> $GITHUB_OUTPUT
@ -296,8 +296,8 @@ jobs:
\"inline\": true
},
{
\"name\": \"🧪 mana-core-auth\",
\"value\": \"${{ needs.test-mana-core-auth.result }}\",
\"name\": \"🧪 mana-auth\",
\"value\": \"${{ needs.test-mana-auth.result }}\",
\"inline\": true
},
{