-
Notifications
You must be signed in to change notification settings - Fork 16
61 lines (54 loc) · 2.03 KB
/
test-acceptance.yml
File metadata and controls
61 lines (54 loc) · 2.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
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