Skip to content

Commit b909bed

Browse files
committed
Apply modern settings preview migration on push
1 parent ffbabb3 commit b909bed

1 file changed

Lines changed: 10 additions & 7 deletions

File tree

.github/workflows/settings-refactor-phase2.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Settings refactor phase 2 migration
1+
name: Settings refactor migration
22

33
on:
44
push:
@@ -7,7 +7,9 @@ on:
77
paths:
88
- 'scripts/phase2_catalog_migration.py'
99
- 'scripts/phase2_behavior_migration.py'
10+
- 'scripts/phase3_modern_ui_migration.py'
1011
- 'tests/test_settings_behavior_migration.py'
12+
- 'tests/test_modern_settings_preview.py'
1113
- '.github/workflows/settings-refactor-phase2.yml'
1214
workflow_dispatch:
1315

@@ -25,23 +27,24 @@ jobs:
2527
- uses: actions/setup-python@v5
2628
with:
2729
python-version: '3.11'
28-
- name: Apply Phase 2 migrations
30+
- name: Apply settings refactor migrations
2931
run: |
3032
python3 scripts/phase2_catalog_migration.py
3133
python3 scripts/phase2_behavior_migration.py
32-
- name: Validate Phase 2 result
34+
python3 scripts/phase3_modern_ui_migration.py
35+
- name: Validate migrated result
3336
run: |
34-
python3 -m unittest tests/test_settings_audit.py tests/test_settings_behavior_migration.py
37+
python3 -m unittest tests/test_settings_audit.py tests/test_settings_behavior_migration.py tests/test_modern_settings_preview.py
3538
python3 scripts/settings_audit.py --report settings-audit.json
36-
- name: Commit Phase 2 migrations
39+
- name: Commit migrations
3740
shell: bash
3841
run: |
3942
if git diff --quiet -- src/settings-catalog.json src/settings.qml; then
40-
echo 'Phase 2 migrations are already applied.'
43+
echo 'Settings refactor migrations are already applied.'
4144
exit 0
4245
fi
4346
git config user.name 'github-actions[bot]'
4447
git config user.email '41898282+github-actions[bot]@users.noreply.github.com'
4548
git add src/settings-catalog.json src/settings.qml
46-
git commit -m 'Apply settings refactor phase 2 migrations'
49+
git commit -m 'Apply settings refactor UI migrations'
4750
git push origin HEAD:agent/settings-refactor-phase1-safety

0 commit comments

Comments
 (0)