Merge main into coach: v1.2.6 plus die Backlog-Runde, Locale-Union, CI laeuft jetzt auch auf coach

This commit is contained in:
Duarte Santos committed 2026-08-18 12:17:12 +02:00
commit 8d3f667c89
86 files changed
+8924 -221

No files matched your search

+23 -1
View File
@@ -1,9 +1,14 @@
name: Publish Docker images
# Images are published from a *published release*, never from a bare tag push.
# A tag that is later deleted (the versioning rule consolidates unreleased tags)
# would otherwise leave its image tags behind in GHCR forever, and dependency
# bots read those as a newer version. See issue #87.
on:
push:
branches: [main]
tags: ['v*']
release:
types: [published]
workflow_dispatch:
permissions:
@@ -29,6 +34,19 @@ jobs:
id: repo
run: echo "owner=$(echo '${{ github.repository_owner }}' | tr '[:upper:]' '[:lower:]')" >> "$GITHUB_OUTPUT"
- name: Set version metadata
id: version_meta
run: |
# On a release the ref is refs/tags/vX.Y.Z; on a main push it is a branch ref,
# which would otherwise label the image "refs/heads/main".
case "$GITHUB_REF" in
refs/tags/*) VERSION="${GITHUB_REF#refs/tags/}" ;;
*) VERSION="main-${GITHUB_SHA::7}" ;;
esac
echo "VERSION=$VERSION" >> $GITHUB_OUTPUT
echo "VCS_REF=${GITHUB_SHA}" >> $GITHUB_OUTPUT
echo "BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" >> $GITHUB_OUTPUT
- uses: docker/setup-qemu-action@v4
- uses: docker/setup-buildx-action@v4
@@ -52,6 +70,10 @@ jobs:
context: ${{ matrix.context }}
file: ${{ matrix.file }}
platforms: linux/amd64,linux/arm64
build-args: |
VERSION=${{ steps.version_meta.outputs.VERSION }}
VCS_REF=${{ steps.version_meta.outputs.VCS_REF }}
BUILD_DATE=${{ steps.version_meta.outputs.BUILD_DATE }}
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
+33 -1
View File
@@ -7,13 +7,15 @@ on:
paths:
- 'frontend/**'
- 'api/**'
- 'mcp/**'
- 'scripts/build-coach-library.mjs'
- '.github/workflows/test.yml'
push:
branches: [main]
branches: [main, coach]
paths:
- 'frontend/**'
- 'api/**'
- 'mcp/**'
- 'scripts/build-coach-library.mjs'
- '.github/workflows/test.yml'
workflow_dispatch:
@@ -45,6 +47,36 @@ jobs:
working-directory: frontend
- run: node scripts/check-locales.mjs
working-directory: frontend
# check-locales compares the packs to each other, so a key missing from ALL of them is
# invisible to it. This walks src/ instead. Report-only for now: there is a known
# backlog of untranslated demo-view strings to clear before it can fail the build.
- run: node scripts/check-source-strings.mjs
working-directory: frontend
# The fatigue model must never read higher after a rest day than before it.
# Property probe over ~108k comparisons; too slow for the unit suite, cheap here.
- run: npm run test:fatigue-probe
working-directory: frontend
mcp:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version: 22
cache: npm
cache-dependency-path: mcp/package-lock.json
- run: npm ci
working-directory: mcp
- run: npm test
working-directory: mcp
# The one check the vitest suite structurally cannot make. The MCP server is a bare node
# process, but vitest runs its tests through Vite — import.meta.glob, .jsx imports and
# ?raw all resolve happily there. That is how a Vite-only import reached a shared lib
# module with 33 green tests standing over a server that died on startup.
- run: npm run check:node-loadable
working-directory: mcp
api:
runs-on: ubuntu-latest