Skip to content
Merged
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
2 changes: 1 addition & 1 deletion .agent/skills/console/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Use the resolved URL as `{CONSOLE_URL}` in all commands below (e.g., `{CONSOLE_U
## Quick Start

```bash
# Open Thunder Console (redirects to sign-in gate)
# Open Console (redirects to sign-in gate)
playwright-cli open {CONSOLE_URL} -s=thunder

# After authenticating (see below), navigate directly
Expand Down
5 changes: 4 additions & 1 deletion .github/actions/release-notification/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ inputs:
webhook:
description: 'Google Chat webhook URL'
required: true
product-name:
description: 'Product name to display in the notification'
required: true
release-name:
description: 'Name of the release'
required: true
Expand Down Expand Up @@ -35,7 +38,7 @@ runs:
{
"cards": [{
"header": {
"title": "Thunder $RELEASE_TAG Released ⚡",
"title": "${{ inputs.product-name }} $RELEASE_TAG Released ⚡",
"imageUrl": "https://cdn-icons-png.freepik.com/256/11063/11063287.png",
"imageStyle": "AVATAR"
},
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/postgres-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ on:

env:
GOFLAGS: "-mod=readonly"
PRODUCT_NAME: "Thunder"
PRODUCT_NAME_LOWER: "thunder"

jobs:
dependency-guard:
Expand Down Expand Up @@ -86,7 +88,7 @@ jobs:
make build_with_coverage_only OS=$(go env GOOS) ARCH=$(go env GOARCH)

# Find the built distribution
DIST_PATH=$(find target/dist -name "thunder-*.zip" | head -1)
DIST_PATH=$(find target/dist -name "$PRODUCT_NAME_LOWER-*.zip" | head -1)
echo "distribution-path=$DIST_PATH" >> $GITHUB_OUTPUT
echo "Built distribution: $DIST_PATH"

Expand Down
40 changes: 21 additions & 19 deletions .github/workflows/pr-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ concurrency:

env:
GOFLAGS: "-mod=readonly"
PRODUCT_NAME: "Thunder"
PRODUCT_NAME_LOWER: "thunder"

jobs:
dependency-guard:
Expand Down Expand Up @@ -288,7 +290,7 @@ jobs:
make build_with_coverage_only OS=$(go env GOOS) ARCH=$(go env GOARCH)

# Find the built distribution
DIST_PATH=$(find target/dist -name "thunder-*.zip" | head -1)
DIST_PATH=$(find target/dist -name "$PRODUCT_NAME_LOWER-*.zip" | head -1)
echo "Built distribution: $DIST_PATH"

- name: 📦 Upload Built Distribution
Expand Down Expand Up @@ -596,24 +598,24 @@ jobs:

- name: 📂 Extract Server to E2E
run: |
mkdir -p tests/e2e/thunder-server
unzip target/dist/thunder-*.zip -d tests/e2e/thunder-server
cd tests/e2e/thunder-server
# Find the extracted folder (name includes version and arch) and move its contents to the root of tests/e2e/thunder-server
EXTRACTED_DIR=$(find . -maxdepth 1 -type d -name "thunder-*" | head -n 1)
mkdir -p tests/e2e/server
unzip target/dist/$PRODUCT_NAME_LOWER-*.zip -d tests/e2e/server
cd tests/e2e/server
# Find the extracted folder (name includes version and arch) and move its contents to the root of tests/e2e/server
EXTRACTED_DIR=$(find . -maxdepth 1 -type d -name "$PRODUCT_NAME_LOWER-*" | head -n 1)
if [ -n "$EXTRACTED_DIR" ]; then
mv "$EXTRACTED_DIR"/* .
rmdir "$EXTRACTED_DIR"
fi
chmod +x setup.sh start.sh

- name: 🚀 Start Thunder Server
- name: 🚀 Start the Server
run: |
cd tests/e2e/thunder-server
cd tests/e2e/server
./setup.sh
SKIP_SECURITY=true ./start.sh &
THUNDER_PID=$!
echo "THUNDER_PID=$THUNDER_PID" >> $GITHUB_ENV
SERVER_PID=$!
echo "SERVER_PID=$SERVER_PID" >> $GITHUB_ENV
# Wait for server to be ready
echo "Waiting for server to be ready on https://localhost:8090..."
for i in {1..60}; do
Expand All @@ -636,7 +638,7 @@ jobs:
- name: 🔍 Extract Sample App ID
id: extract-app-id
run: |
echo "Fetching applications from Thunder..."
echo "Fetching applications from the server..."

# Get applications list
APPS_RESPONSE=$(curl -s -k https://localhost:8090/applications)
Expand All @@ -654,13 +656,13 @@ jobs:
echo "sample_app_id=$SAMPLE_APP_ID" >> $GITHUB_OUTPUT
fi

- name: 🔄 Restart Thunder Server with Security Enabled
- name: 🔄 Restart the Server with Security Enabled
run: |
cd tests/e2e/thunder-server
cd tests/e2e/server

echo "Stopping Thunder server..."
echo "Stopping the server..."
# Kill the start.sh wrapper process
kill $THUNDER_PID 2>/dev/null || true
kill $SERVER_PID 2>/dev/null || true

# Also kill any process still listening on port 8090
# (start.sh backgrounds the thunder binary, so killing start.sh
Expand All @@ -674,10 +676,10 @@ jobs:
# Wait for port to be fully released
sleep 3

echo "Starting Thunder server with security enabled..."
echo "Starting the server with security enabled..."
./start.sh &
THUNDER_PID=$!
echo "THUNDER_PID=$THUNDER_PID" >> $GITHUB_ENV
SERVER_PID=$!
echo "SERVER_PID=$SERVER_PID" >> $GITHUB_ENV

# Wait for server to be ready
echo "Waiting for server to be ready on https://localhost:8090..."
Expand Down Expand Up @@ -773,7 +775,7 @@ jobs:
# MFA Test Configuration
SAMPLE_APP_ID: ${{ steps.extract-app-id.outputs.sample_app_id }}
SAMPLE_APP_URL: 'https://localhost:3000'
THUNDER_URL: 'https://localhost:8090'
SERVER_URL: 'https://localhost:8090'
AUTO_SETUP_MFA: ${{ vars.AUTO_SETUP_MFA || 'true' }}
MOCK_SMS_SERVER_PORT: ${{ vars.MOCK_SMS_SERVER_PORT || 8098 }}
SAMPLE_APP_USERNAME: ${{ secrets.SAMPLE_APP_USERNAME || 'e2e-test-user' }}
Expand Down
Loading
Loading