Führe die JavaScript-Tests im Gate aus (Docker-Ziel jstest)
CI Feature / test (push) Successful in 7m17s
CI Feature / test (push) Successful in 7m17s
scripts/ci-test.sh baut zusätzlich das Ziel jstest (node:22-alpine, npm ci, npm run test:js) und führt es im Wegwerf-Container aus. Das Ziel gehört nicht zu app und web; die ausgelieferten Images enthalten weder Vitest noch die Tests. Nachgeführt in docs/betrieb/DEPLOYMENT.md. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
345e694933
commit
b9da512170
3 files changed
+19
-2
No files matched your search
@@ -38,6 +38,15 @@ RUN composer dump-autoload --optimize --no-interaction
|
||||
ENV APP_ENV=testing
|
||||
CMD ["sh", "-ec", "if [ -x vendor/bin/pint ]; then vendor/bin/pint --test; fi; php artisan test --compact"]
|
||||
|
||||
# ---- JavaScript-Tests (CI): Vitest für resources/js. Nur das Gate baut dieses Ziel; die ausgelieferten Images
|
||||
# (app, web) enthalten weder Vitest noch die Tests, weil sie nur das Ergebnis von "assets" übernehmen.
|
||||
FROM node:22-alpine AS jstest
|
||||
WORKDIR /app
|
||||
COPY package.json package-lock.json vitest.config.js ./
|
||||
RUN npm ci
|
||||
COPY resources/js ./resources/js
|
||||
CMD ["npm", "run", "test:js"]
|
||||
|
||||
# ---- App (php-fpm; derselbe Tag dient für Queue und Scheduler) -------------------------------
|
||||
FROM base AS app
|
||||
COPY --from=vendor /var/www/html /var/www/html
|
||||
|
||||
Reference in new issue
Block a user