Skip to content

chore: sync templates from emdash v0.24.1 #57

chore: sync templates from emdash v0.24.1

chore: sync templates from emdash v0.24.1 #57

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
smoke-test:
name: ${{ matrix.template }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
template:
- blank
- blog
- blog-cloudflare
- marketing
- marketing-cloudflare
- portfolio
- portfolio-cloudflare
- starter
- starter-cloudflare
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 10
- uses: actions/setup-node@v4
with:
node-version: 22
- name: Install
working-directory: ${{ matrix.template }}
run: pnpm install --no-frozen-lockfile
- name: Typecheck
working-directory: ${{ matrix.template }}
run: pnpm typecheck
- name: Build
working-directory: ${{ matrix.template }}
run: pnpm build
- name: Smoke test admin
if: ${{ !contains(matrix.template, 'cloudflare') }}
working-directory: ${{ matrix.template }}
run: |
npx astro dev --port 4321 &
SERVER_PID=$!
trap "kill $SERVER_PID 2>/dev/null" EXIT
# Wait for dev server
for i in $(seq 1 30); do
curl -sf http://localhost:4321/ -o /dev/null 2>/dev/null && break
sleep 1
done
# Run migrations + create session
curl -sf -c /tmp/cookies.txt \
http://localhost:4321/_emdash/api/setup/dev-bypass \
-o /dev/null
# Verify admin page renders without SSR errors
curl -sf -b /tmp/cookies.txt \
http://localhost:4321/_emdash/admin \
-o /dev/null