File tree Expand file tree Collapse file tree 1 file changed +4
-19
lines changed
Expand file tree Collapse file tree 1 file changed +4
-19
lines changed Original file line number Diff line number Diff line change 44 pull_request :
55 branches : [main]
66 types : [opened, synchronize, reopened]
7+ # Only trigger when mock data or snapshots change
8+ paths :
9+ - " tests/mocks/data/**"
10+ - " tests/snapshots/**"
711
812jobs :
913 validate-data-refresh :
1014 runs-on : ubuntu-latest
11- if : startsWith(github.head_ref, 'data-refresh-')
1215
1316 steps :
1417 - name : Checkout repository
2528
2629 - name : Run tests
2730 run : npm test
28-
29- data-refresh-check :
30- runs-on : ubuntu-latest
31- needs : [validate-data-refresh]
32- if : always()
33-
34- steps :
35- - name : Determine result
36- run : |
37- if [[ "${{ needs.validate-data-refresh.result }}" == "failure" ]]; then
38- echo "❌ Data refresh validation failed!"
39- echo "Tests are failing - please fix before merging."
40- exit 1
41- elif [[ "${{ needs.validate-data-refresh.result }}" == "success" ]]; then
42- echo "✅ Data refresh validation passed!"
43- else
44- echo "⏭️ Data refresh validation skipped (not a data-refresh PR)"
45- fi
You can’t perform that action at this time.
0 commit comments