diff --git a/.changeset/build-provider-before-doctor.md b/.changeset/build-provider-before-doctor.md new file mode 100644 index 0000000..6a18768 --- /dev/null +++ b/.changeset/build-provider-before-doctor.md @@ -0,0 +1,5 @@ +--- +'@ankhorage/devtools': patch +--- + +Build repository providers before running Ankh Doctor validation in the canonical CI workflow so fresh CI checkouts can import their local provider modules. diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 05eb663..9f50df8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,9 +27,6 @@ jobs: - name: Install dependencies run: bun install --frozen-lockfile - - name: Validate Ankhorage repository - run: bunx @ankhorage/ankh doctor validate . - - name: Run build run: | if node -e "const p=require('./package.json'); process.exit(p.scripts?.build ? 0 : 1)"; then @@ -38,6 +35,9 @@ jobs: echo "No build script found; skipping." fi + - name: Validate Ankhorage repository + run: bunx @ankhorage/ankh doctor validate . + - name: Run lint run: | if node -e "const p=require('./package.json'); process.exit(p.scripts?.lint ? 0 : 1)"; then diff --git a/src/tools/workflows/files/ci.yml b/src/tools/workflows/files/ci.yml index 05eb663..9f50df8 100644 --- a/src/tools/workflows/files/ci.yml +++ b/src/tools/workflows/files/ci.yml @@ -27,9 +27,6 @@ jobs: - name: Install dependencies run: bun install --frozen-lockfile - - name: Validate Ankhorage repository - run: bunx @ankhorage/ankh doctor validate . - - name: Run build run: | if node -e "const p=require('./package.json'); process.exit(p.scripts?.build ? 0 : 1)"; then @@ -38,6 +35,9 @@ jobs: echo "No build script found; skipping." fi + - name: Validate Ankhorage repository + run: bunx @ankhorage/ankh doctor validate . + - name: Run lint run: | if node -e "const p=require('./package.json'); process.exit(p.scripts?.lint ? 0 : 1)"; then