Skip to content

core: add native split-footer commit path #209

core: add native split-footer commit path

core: add native split-footer commit path #209

Workflow file for this run

name: Format and Lint
on:
pull_request:
branches: [main]
jobs:
fmt:
name: Format Check
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install dependencies
run: bun install
- name: Check formatting
run: bun run fmt:check
- name: Show formatting differences
if: failure()
run: |
echo "=== Showing differences for each file ==="
bun run fmt
git diff --color=always
lint:
name: Lint Check
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install dependencies
run: bun install
- name: Run linter
run: bun run lint:ci
checks-complete:
name: Format and Lint
needs: [fmt, lint]
runs-on: ubuntu-latest
if: always()
steps:
- name: Check results
run: |
if [ "${{ needs.fmt.result }}" != "success" ] || [ "${{ needs.lint.result }}" != "success" ]; then
echo "Format or lint checks failed"
exit 1
fi
echo "Format and lint checks passed"