feat: migrate to Bun 1.3 #7
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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" |