Repository navigation
fix(runner): run claude-runner-sweep on macOS, keep rescues findable #361
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Staging Push Validation | |
| # Pushes all templates to staging-coder.ddev.com with --activate=false to | |
| # verify the Coder provider accepts the HCL before any workspace is affected. | |
| # | |
| # One-time setup on the test Coder instance: | |
| # coder users create --email ci@staging-coder.ddev.com --username ci-bot --login-type none | |
| # coder users edit-roles ci-bot --roles template-admin --yes | |
| # coder tokens create --user ci-bot --lifetime 8760h | |
| # Store the token in 1Password at op://test-secrets/TEST_CODER_SESSION_TOKEN/credential | |
| # | |
| # Requires: | |
| # Repository variable: TEST_CODER_URL - https://staging-coder.ddev.com | |
| # Repository secret: OP_SERVICE_ACCOUNT_TOKEN - 1Password service account with read access | |
| # 1Password item: op://test-secrets/TEST_CODER_SESSION_TOKEN/credential | |
| # Docs-only changes skip this workflow: docs-check.yml covers them, and a | |
| # docs PR has no reason to push templates to the shared staging box. | |
| # A mixed change still runs, because paths-ignore skips only when every | |
| # changed file matches. | |
| on: | |
| push: | |
| branches: [main] | |
| paths-ignore: | |
| - 'docs/**' | |
| - '*.md' | |
| - '*/README.md' | |
| - 'mkdocs.yml' | |
| - '.readthedocs.yaml' | |
| - '.markdownlint.jsonc' | |
| - '.linkspector.yml' | |
| pull_request: | |
| paths-ignore: | |
| - 'docs/**' | |
| - '*.md' | |
| - '*/README.md' | |
| - 'mkdocs.yml' | |
| - '.readthedocs.yaml' | |
| - '.markdownlint.jsonc' | |
| - '.linkspector.yml' | |
| workflow_dispatch: | |
| inputs: | |
| debug_enabled: | |
| description: Enable remote debugging session | |
| type: boolean | |
| required: false | |
| default: false | |
| jobs: | |
| push-staging: | |
| name: Push to staging (${{ matrix.template }}) | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| include: | |
| - template: drupal-core | |
| # cache_path required until #99 (remove seed cache) lands; | |
| # non-existent path is fine — only checked at workspace create time | |
| extra_vars: "--variable cache_path=/tmp/ci-no-cache" | |
| - template: freeform | |
| extra_vars: "" | |
| fail-fast: false | |
| env: | |
| VERSION_NAME: ci-${{ github.run_id }}-${{ github.run_attempt }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Load 1Password secrets | |
| uses: 1password/load-secrets-action@v4 | |
| if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.owner.login == github.repository_owner }} | |
| with: | |
| export-env: true | |
| env: | |
| OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }} | |
| TEST_CODER_SESSION_TOKEN: "op://test-secrets/TEST_CODER_SESSION_TOKEN/credential" | |
| - name: Setup upterm session | |
| uses: owenthereal/action-upterm@v1 | |
| with: | |
| limit-access-to-actor: true | |
| if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }} | |
| - uses: coder/setup-action@v1 | |
| with: | |
| access_url: ${{ vars.TEST_CODER_URL }} | |
| coder_session_token: ${{ env.TEST_CODER_SESSION_TOKEN }} | |
| - name: Push template (inactive) | |
| run: | | |
| ./scripts/ci-template-push.sh ${{ matrix.template }} \ | |
| --directory ${{ matrix.template }} \ | |
| --activate=false \ | |
| --name ${{ env.VERSION_NAME }} \ | |
| --yes \ | |
| --variable image_version="$(cat VERSION)" \ | |
| --variable workspace_image_registry=index.docker.io/ddev/coder-ddev \ | |
| ${{ matrix.extra_vars }} | |
| - name: Verify version exists | |
| run: coder templates versions list ${{ matrix.template }} | grep ${{ env.VERSION_NAME }} | |
| - name: Archive CI version | |
| if: always() | |
| run: coder templates versions archive ${{ matrix.template }} ${{ env.VERSION_NAME }} --yes || true |