Skip to content

Commit 35e9969

Browse files
committed
chore: require approval for integration test step
1 parent 4e170dd commit 35e9969

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

.github/workflows/integrationTests.yaml

+12-5
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
pull_request_target:
77
branches:
88
- "*"
9+
910
jobs:
1011
smoke-tests:
1112
runs-on: ubuntu-latest
@@ -23,8 +24,19 @@ jobs:
2324

2425
- name: Run smoke tests
2526
run: pnpm run smokeTests
27+
28+
approval:
29+
runs-on: ubuntu-latest
30+
needs: smoke-tests
31+
steps:
32+
- name: Wait for manual approval
33+
run: |
34+
echo "Please approve the workflow manually to proceed."
35+
echo "::pause::" # This creates a manual approval checkpoint.
36+
2637
integration-tests:
2738
runs-on: ubuntu-latest
39+
needs: approval
2840
env:
2941
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
3042
steps:
@@ -46,16 +58,11 @@ jobs:
4658
run: pnpm build
4759

4860
- name: Check for API key
49-
id: check_api_key
5061
run: |
5162
if [ -z "$OPENAI_API_KEY" ]; then
5263
echo "Error: OPENAI_API_KEY is not set."
5364
exit 1
5465
fi
55-
env:
56-
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
5766
5867
- name: Run integration tests
5968
run: pnpm run integrationTests
60-
env:
61-
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}

0 commit comments

Comments
 (0)