d0762a177e
The new CI revealed 206 astro check errors on main, partly surfaced by the Cloudflare adapter switch in PR #5 (the process.env typing differs on Workers). Until the debt is cleared, run typecheck for visibility but let the build step gate the workflow.
39 lines
877 B
YAML
39 lines
877 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 10
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 22
|
|
cache: npm
|
|
|
|
- name: Install
|
|
run: npm ci
|
|
|
|
- name: Typecheck (non-blocking — repo has known debt)
|
|
continue-on-error: true
|
|
run: npm run typecheck
|
|
|
|
- name: Build
|
|
run: npm run build
|
|
|
|
- name: Notify ntfy on failure
|
|
if: failure()
|
|
run: |
|
|
curl -s -d "CI FAILED on ${{ github.ref_name }} @ $(date '+%H:%M') — ${{ github.sha }}" \
|
|
-H "Title: ER github.io CI Failed" \
|
|
-H "Priority: high" \
|
|
-H "Tags: rotating_light" \
|
|
https://ntfy.saillant.cc/ops-alerts 2>/dev/null || true
|