Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
name: 🔁 CI
name: 🧪 Pull request checks

on:
pull_request:
push:
branches: [main]
workflow_dispatch:

# `pull_request` already covers branch pushes; `branches: ['**']` ran every
# PR commit twice.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
Expand Down
49 changes: 49 additions & 0 deletions .github/workflows/sanity-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: ✅ Sanity check

on:
push:
branches: [main]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false

permissions:
contents: read

env:
BUN_VERSION: 1.4.0

jobs:
sanity-check:
name: 🩺 Sanity check
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: 📥 Checkout
uses: actions/checkout@v4

- name: 🥟 Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: ${{ env.BUN_VERSION }}

- name: ♻️ Restore dependency cache
uses: actions/cache@v4
with:
path: ~/.bun/install/cache
key: ${{ runner.os }}-bun-${{ hashFiles('bun.lock') }}
restore-keys: ${{ runner.os }}-bun-

- name: 📦 Install dependencies
run: bun install --frozen-lockfile

- name: 🚦 Full check
run: bun run system-check

- name: 🎉 All clear
run: echo "✅ ${GITHUB_SHA:0:7} landed on \`main\` clean — format, types, lint, tests, and build all green." >> "$GITHUB_STEP_SUMMARY"

- name: 🚨 Something broke
if: failure()
run: echo "💥 ${GITHUB_SHA:0:7} broke \`main\` — check the failed step above." >> "$GITHUB_STEP_SUMMARY"
Loading