forked from temporalio/cloud-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (48 loc) · 1.44 KB
/
Copy pathinteg.yml
File metadata and controls
61 lines (48 loc) · 1.44 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: integration
on:
push:
branches:
- develop
- main
pull_request:
permissions:
contents: read
jobs:
integration:
name: Integration tests
runs-on: ubuntu-latest
environment:
name: integration
deployment: true # This is required to ensure a maintainer must approve all runs
env:
TEMPORAL_CLOUD_SERVER: ${{ vars.TEMPORAL_CLOUD_SERVER }}
TEMPORAL_API_KEY: ${{ secrets.TEMPORAL_API_KEY }}
steps:
- name: Checkout
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- name: Set up Go
uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6.5.0
with:
go-version-file: "go.mod"
check-latest: true
cache: false
- name: Validate required environment variables and secrets
shell: bash
run: |
set -euo pipefail
missing=0
if [[ -z "${TEMPORAL_CLOUD_SERVER:-}" ]]; then
echo "::error::TEMPORAL_CLOUD_SERVER is not set or is empty"
missing=1
fi
# Secret: check presence ONLY, never print or echo
if [[ -z "${TEMPORAL_API_KEY:-}" ]]; then
echo "::error::TEMPORAL_API_KEY is not set or is empty"
missing=1
fi
if [[ "$missing" -ne 0 ]]; then
exit 1
fi
- name: Run integration tests
run: |
make test-integration