Skip to content

Commit 2f211cc

Browse files
authored
chore: Add GH action for smoke tests (#938)
1 parent d1fc0c7 commit 2f211cc

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

.github/workflows/main.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,3 +98,47 @@ jobs:
9898
if: steps.changed-files.outputs.any_changed == 'true'
9999
working-directory: ./smoke-tests/otel-collector
100100
run: bats .
101+
102+
stably-test-action:
103+
name: Stably Test Runner
104+
runs-on: ubuntu-latest
105+
permissions:
106+
pull-requests: write
107+
contents: write
108+
steps:
109+
- name: Checkout
110+
id: checkout
111+
uses: actions/checkout@v4
112+
113+
- name: Wait for Vercel deployment
114+
run: |
115+
echo "Waiting 3 minutes for Vercel deployment to complete..."
116+
sleep 180
117+
118+
- name: Set deployment URL
119+
id: set-url
120+
run: |
121+
# For PR: use preview URL pattern
122+
if [ "${{ github.event_name }}" == "pull_request" ]; then
123+
BRANCH_NAME="${{ github.head_ref }}"
124+
# Clean branch name for URL (replace / with -)
125+
CLEAN_BRANCH=$(echo "$BRANCH_NAME" | sed 's/\//-/g')
126+
URL="https://hyperdx-v2-oss-app-git-${CLEAN_BRANCH}-hyperdx.vercel.app"
127+
else
128+
# For push to master: use production URL
129+
URL="https://play.hyperdx.io"
130+
fi
131+
echo "Using URL: $URL"
132+
echo "url=$URL" >> $GITHUB_OUTPUT
133+
134+
- name: Stably Runner Action
135+
uses: stablyhq/stably-runner-action@v3
136+
with:
137+
test-suite-id: cmc548u5u0001la04q7y8ddj2
138+
github-token: ${{ secrets.GITHUB_TOKEN }}
139+
api-key: ${{ secrets.STABLY_API_KEY }}
140+
environment: PRODUCTION
141+
variable-overrides: |
142+
{
143+
"SITE_URL": "${{ steps.set-url.outputs.url }}"
144+
}

0 commit comments

Comments
 (0)