Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 61 additions & 0 deletions .github/workflows/integ.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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@v4

- name: Set up Go
uses: actions/setup-go@v6
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
33 changes: 1 addition & 32 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,9 @@ permissions:

jobs:
test:
name: Unit + Integration
name: Unit tests
runs-on: ubuntu-latest

env:
TEMPORAL_CLOUD_SERVER: ${{ vars.TEMPORAL_CLOUD_SERVER }}
TEMPORAL_API_KEY: ${{ secrets.TEMPORAL_API_KEY }}

steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -30,33 +26,6 @@ jobs:
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 unit tests
run: |
make test

- name: Run integration tests
run: |
make test-integration
Loading