Skip to content

build(deps-dev): bump vitest 2.1.9 → 4.1.8 with coverage-v8 coupled (… #100

build(deps-dev): bump vitest 2.1.9 → 4.1.8 with coverage-v8 coupled (…

build(deps-dev): bump vitest 2.1.9 → 4.1.8 with coverage-v8 coupled (… #100

Workflow file for this run

name: Container build smoke
# Builds the new Mastra TS image and runs it with no env vars.
# Pass condition: image exits non-zero with a Zod validation error in stderr,
# proving env parsing fires before any other path. Fast (~60s) and cheap.
on:
push:
branches:
- main
- 'feat/**'
- 'fix/**'
pull_request:
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Build container
run: docker build -t wrily-mastra:ci .
- name: Run with no env (expect Zod auth error)
run: |
set +e
docker run --rm wrily-mastra:ci > out.log 2> err.log
code=$?
set -e
echo "exit=$code"
if [ "$code" = "0" ]; then
echo "::error::expected non-zero exit with no env, got 0"
exit 1
fi
if ! grep -q "ZodError" err.log; then
echo "::error::expected ZodError in stderr"
cat err.log
exit 1
fi
echo "smoke ok: exited $code with ZodError as expected"