diff --git a/.github/workflows/tend-install-test.yaml b/.github/workflows/tend-install-test.yaml deleted file mode 100644 index c700b96..0000000 --- a/.github/workflows/tend-install-test.yaml +++ /dev/null @@ -1,71 +0,0 @@ -# Generated by tend 0.0.25. Regenerate with: uvx tend@latest init -# -# Do not edit this file directly — it will be overwritten on regeneration. -# To customize behavior, edit the relevant skill (for example, -# `running-tend`) in this repo's .claude/skills/ directory, or open an issue at -# https://github.com/max-sixty/tend/issues for changes that need to -# happen upstream in the tend-ci-runner plugin. - -name: tend-install-test -on: - pull_request: - paths: - - .github/workflows/tend-*.yaml - - .config/tend.yaml - -jobs: - install-test: - # Same-repo PRs only. Fork PRs don't carry secrets and the workflow - # is short-lived (removed on the next nightly regen), so cross-fork - # validation isn't worth special-casing. - if: github.event.pull_request.head.repo.full_name == github.repository - runs-on: ubuntu-24.04 - permissions: - contents: read - steps: - - uses: actions/checkout@v6 - - uses: astral-sh/setup-uv@v6 - - name: Verify required secrets are set - env: - BOT_TOKEN: ${{ secrets.TEND_BOT_TOKEN }} - CLAUDE_OAUTH: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }} - ANTHROPIC_KEY: ${{ secrets.ANTHROPIC_API_KEY }} - run: | - missing="" - [ -n "$BOT_TOKEN" ] || missing="$missing TEND_BOT_TOKEN" - if [ -z "$CLAUDE_OAUTH$ANTHROPIC_KEY" ]; then - missing="$missing harness-auth(set CLAUDE_CODE_OAUTH_TOKEN or ANTHROPIC_API_KEY)" - fi - if [ -n "$missing" ]; then - echo "::error::Missing repo secrets:$missing" - exit 1 - fi - - name: Verify generator output matches committed files - env: - GH_TOKEN: ${{ github.token }} - run: | - # actions/checkout's default shallow clone leaves - # refs/remotes/origin/ unfetched, so - # `git remote set-head origin --auto` errors with - # "Not a valid ref: refs/remotes/origin/main" before any - # default-branch detection runs (tend issue #582). Query the - # API and set the symbolic-ref directly. - DEFAULT_BRANCH=$(gh api "repos/$GITHUB_REPOSITORY" --jq .default_branch) - git fetch origin --depth 1 "+refs/heads/$DEFAULT_BRANCH:refs/remotes/origin/$DEFAULT_BRANCH" - git symbolic-ref refs/remotes/origin/HEAD "refs/remotes/origin/$DEFAULT_BRANCH" - # Pin the regen to the version in the committed header so a tend - # release between local `init` and this CI run doesn't fail the - # drift check for an irrelevant reason. - HEADER=$(head -1 .github/workflows/tend-install-test.yaml) - HEADER="${HEADER#'# Generated by tend '}" - TEND_VERSION="${HEADER%%'. Regenerate'*}" - uvx "tend@$TEND_VERSION" init --with-install-test - # Exclude this file from the drift comparison: it's locally - # patched to work around tend issue #582, so it diverges from - # generator output by design until upstream lands a fix. The - # file is removed on the next nightly regen anyway. - if ! git diff --quiet -- ':!.github/workflows/tend-install-test.yaml' .github/workflows/; then - echo "::error::Committed workflows differ from 'uvx tend@$TEND_VERSION init --with-install-test' output. Run it locally and commit the result." - git --no-pager diff -- ':!.github/workflows/tend-install-test.yaml' .github/workflows/ - exit 1 - fi