feat: accept connection name or ID in pause/unpause commands #228
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: Acceptance Tests | |
| on: | |
| pull_request: | |
| branches: | |
| - next | |
| - main | |
| jobs: | |
| acceptance: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - slice: "0" | |
| api_key_secret: HOOKDECK_CLI_TESTING_API_KEY | |
| tags: "basic connection source destination gateway mcp listen project_use connection_list connection_upsert connection_error_hints connection_oauth_aws connection_update" | |
| - slice: "1" | |
| api_key_secret: HOOKDECK_CLI_TESTING_API_KEY_2 | |
| tags: "request event" | |
| - slice: "2" | |
| api_key_secret: HOOKDECK_CLI_TESTING_API_KEY_3 | |
| tags: "attempt metrics issue transformation" | |
| runs-on: ubuntu-latest | |
| env: | |
| ACCEPTANCE_SLICE: ${{ matrix.slice }} | |
| HOOKDECK_CLI_TESTING_API_KEY: ${{ secrets[matrix.api_key_secret] }} | |
| HOOKDECK_CLI_TELEMETRY_DISABLED: "1" | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@v3 | |
| - name: Set up Go | |
| uses: actions/setup-go@v3 | |
| with: | |
| go-version: "1.24.9" | |
| - name: Run Go Acceptance Tests (slice ${{ matrix.slice }}) | |
| run: go test -tags="${{ matrix.tags }}" ./test/acceptance/... -v -timeout 12m | |
| # Telemetry proxy tests require the real telemetry header; matrix jobs set | |
| # HOOKDECK_CLI_TELEMETRY_DISABLED=1. This job runs -tags=telemetry with | |
| # HOOKDECK_CLI_TELEMETRY_DISABLED=0 so telemetry is on even if the repo sets a global opt-out. | |
| acceptance-telemetry: | |
| runs-on: ubuntu-latest | |
| env: | |
| ACCEPTANCE_SLICE: "0" | |
| HOOKDECK_CLI_TESTING_API_KEY: ${{ secrets.HOOKDECK_CLI_TESTING_API_KEY }} | |
| # Explicitly allow telemetry: repo/org env may set HOOKDECK_CLI_TELEMETRY_DISABLED=1 globally. | |
| HOOKDECK_CLI_TELEMETRY_DISABLED: "0" | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@v3 | |
| - name: Set up Go | |
| uses: actions/setup-go@v3 | |
| with: | |
| go-version: "1.24.9" | |
| - name: Run telemetry acceptance tests | |
| run: go test -tags=telemetry ./test/acceptance/... -v -timeout 12m |