Skip to content
Merged
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
48 changes: 48 additions & 0 deletions .github/workflows/branch-validation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: 🛠️ Branch Checkup

on:
push:
branches: [master]
pull_request:
branches: [master]

permissions:
contents: read

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

jobs:
checkup:
name: 👮‍♂️ Lint, Typecheck, Test and Build
runs-on: ubuntu-latest
steps:
- name: 🏗 Setup Repo
uses: actions/checkout@v7

- name: 🏗 Setup Node
uses: actions/setup-node@v7
with:
node-version: 24
cache: yarn

# `.yarnrc` points `yarn-path` at scripts/bootstrap.js, which forwards to
# yarn whenever arguments are passed and otherwise installs the example
# app and the pods too. Passing the flags keeps it to the library.
- name: 📦 Install Dependencies
run: yarn install --frozen-lockfile

- name: 🧹 Lint
run: yarn lint

- name: 🧪 Typecheck
run: yarn typescript

- name: 🧪 Test
run: yarn test

# `prepare` runs `bob build`, so the install above already built once.
# Running it again is what fails the job if the build breaks.
- name: 🛠️ Build
run: yarn prepare