🐛 fix(ci): use literal superpowers sync paths
This commit is contained in:
parent
48f6de8410
commit
34632234c8
|
|
@ -94,8 +94,8 @@ jobs:
|
||||||
env:
|
env:
|
||||||
TARGET_BRANCH: "main"
|
TARGET_BRANCH: "main"
|
||||||
SUPERPOWERS_BRANCH: "${{ env.THIRDPARTY_BRANCH }}"
|
SUPERPOWERS_BRANCH: "${{ env.THIRDPARTY_BRANCH }}"
|
||||||
SUPERPOWERS_DIR: "${{ env.SUPERPOWERS_DIR }}"
|
SUPERPOWERS_DIR: "superpowers"
|
||||||
SUPERPOWERS_LIST: "${{ env.SUPERPOWERS_LIST }}"
|
SUPERPOWERS_LIST: "codex/skills/.sources/superpowers.list"
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Prepare repo
|
- name: Prepare repo
|
||||||
|
|
|
||||||
|
|
@ -49,6 +49,13 @@ class SuperpowersWorkflowTests(unittest.TestCase):
|
||||||
self.assertIn('git fetch origin "$TARGET_BRANCH"', text)
|
self.assertIn('git fetch origin "$TARGET_BRANCH"', text)
|
||||||
self.assertIn('git checkout -B "$TARGET_BRANCH" "origin/$TARGET_BRANCH"', text)
|
self.assertIn('git checkout -B "$TARGET_BRANCH" "origin/$TARGET_BRANCH"', text)
|
||||||
|
|
||||||
|
def test_auto_update_workflow_sync_job_uses_literal_superpowers_paths(self):
|
||||||
|
text = AUTO_UPDATE_WORKFLOW.read_text(encoding="utf-8")
|
||||||
|
self.assertIn('SUPERPOWERS_DIR: "superpowers"', text)
|
||||||
|
self.assertIn('SUPERPOWERS_LIST: "codex/skills/.sources/superpowers.list"', text)
|
||||||
|
self.assertNotIn('SUPERPOWERS_DIR: "${{ env.SUPERPOWERS_DIR }}"', text)
|
||||||
|
self.assertNotIn('SUPERPOWERS_LIST: "${{ env.SUPERPOWERS_LIST }}"', text)
|
||||||
|
|
||||||
def test_auto_update_script_targets_thirdparty_branch(self):
|
def test_auto_update_script_targets_thirdparty_branch(self):
|
||||||
text = AUTO_UPDATE_SCRIPT.read_text(encoding="utf-8")
|
text = AUTO_UPDATE_SCRIPT.read_text(encoding="utf-8")
|
||||||
self.assertIn('TARGET_BRANCH="${TARGET_BRANCH:-thirdparty/skill}"', text)
|
self.assertIn('TARGET_BRANCH="${TARGET_BRANCH:-thirdparty/skill}"', text)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue