-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvalidate-pattern-generation.yml
More file actions
62 lines (54 loc) · 2.04 KB
/
validate-pattern-generation.yml
File metadata and controls
62 lines (54 loc) · 2.04 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Validate Pattern Generation
on:
push:
paths:
- 'js/pattern-editor/**'
- 'js/arena-geometry.js'
- 'js/arena-configs.js'
- 'data/pattern_generation_reference.json'
- 'data/comprehensive_pattern_reference.json'
- 'tests/validate-pattern-generation.js'
- 'tests/validate-spherical-grating.js'
- 'tests/validate-comprehensive-reference.js'
pull_request:
paths:
- 'js/pattern-editor/**'
- 'js/arena-geometry.js'
- 'js/arena-configs.js'
- 'data/pattern_generation_reference.json'
- 'data/comprehensive_pattern_reference.json'
- 'tests/validate-pattern-generation.js'
- 'tests/validate-spherical-grating.js'
- 'tests/validate-comprehensive-reference.js'
workflow_dispatch:
jobs:
validate:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '24'
- name: Run pattern generation validation
run: node tests/validate-pattern-generation.js
- name: Run spherical grating validation
run: node tests/validate-spherical-grating.js
- name: Run comprehensive MATLAB reference validation
run: node tests/validate-comprehensive-reference.js
- name: Report results
if: always()
run: |
echo "## Pattern Generation Validation Results" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "### Test Suites Run:" >> $GITHUB_STEP_SUMMARY
echo "- Pattern Generation (11 tests)" >> $GITHUB_STEP_SUMMARY
echo "- Spherical Grating (30 tests)" >> $GITHUB_STEP_SUMMARY
echo "- Comprehensive MATLAB Reference (32 tests)" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
if [ $? -eq 0 ]; then
echo "✅ All 73 tests passed" >> $GITHUB_STEP_SUMMARY
else
echo "❌ Some tests failed - check logs for details" >> $GITHUB_STEP_SUMMARY
fi