Skip to content

Replace Bun with Node.js #32

Replace Bun with Node.js

Replace Bun with Node.js #32

Workflow file for this run

name: Format Check
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize]
branches:
- main
jobs:
format-check:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup Bun
uses: oven-sh/setup-bun@735343b667d3e6f658f44d0eca948eb6282f2b76 # v2.0.2
with:
bun-version: latest
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Check formatting
run: bun run format:check
- name: Check if files would change
run: |
if ! git diff --exit-code; then
echo "❌ Files are not properly formatted. Run 'bun run format' to fix."
exit 1
else
echo "✅ All files are properly formatted."
fi