Skip to content

feat: migrate to Bun 1.3 #7

feat: migrate to Bun 1.3

feat: migrate to Bun 1.3 #7

# File: .github/workflows/validate-examples.yml
name: Validate Examples
on:
push:
branches: [main, develop]
pull_request:
branches: [main, develop]
workflow_dispatch:
jobs:
validate:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: '1.3.0'
- name: Install omniscript-cli
run: bun install -g omniscript-cli@latest
- name: Validate all examples
run: |
echo "Validating all OSF examples..."
find . -name "*.osf" -type f | while read file; do
echo "Validating: $file"
osf parse "$file" || exit 1
done
echo "βœ“ All examples validated successfully!"
- name: Count examples
run: |
total=$(find . -name "*.osf" -type f | wc -l)
echo "Total examples: $total"