Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: require approval for integration test step #1388

Merged
merged 2 commits into from
Dec 23, 2024
Merged
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
17 changes: 12 additions & 5 deletions .github/workflows/integrationTests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
pull_request_target:
branches:
- "*"

jobs:
smoke-tests:
runs-on: ubuntu-latest
Expand All @@ -23,8 +24,19 @@ jobs:

- name: Run smoke tests
run: pnpm run smokeTests

approval:
runs-on: ubuntu-latest
needs: smoke-tests
steps:
- name: Wait for manual approval
run: |
echo "Please approve the workflow manually to proceed."
echo "::pause::" # This creates a manual approval checkpoint.

integration-tests:
runs-on: ubuntu-latest
needs: approval
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
steps:
Expand All @@ -46,16 +58,11 @@ jobs:
run: pnpm build

- name: Check for API key
id: check_api_key
run: |
if [ -z "$OPENAI_API_KEY" ]; then
echo "Error: OPENAI_API_KEY is not set."
exit 1
fi
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}

- name: Run integration tests
run: pnpm run integrationTests
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
Loading