-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (32 loc) · 975 Bytes
/
validate-examples.yml
File metadata and controls
39 lines (32 loc) · 975 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# 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"