File tree 1 file changed +12
-5
lines changed
1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change 6
6
pull_request_target :
7
7
branches :
8
8
- " *"
9
+
9
10
jobs :
10
11
smoke-tests :
11
12
runs-on : ubuntu-latest
23
24
24
25
- name : Run smoke tests
25
26
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
+
26
37
integration-tests :
27
38
runs-on : ubuntu-latest
39
+ needs : approval
28
40
env :
29
41
OPENAI_API_KEY : ${{ secrets.OPENAI_API_KEY }}
30
42
steps :
@@ -46,16 +58,11 @@ jobs:
46
58
run : pnpm build
47
59
48
60
- name : Check for API key
49
- id : check_api_key
50
61
run : |
51
62
if [ -z "$OPENAI_API_KEY" ]; then
52
63
echo "Error: OPENAI_API_KEY is not set."
53
64
exit 1
54
65
fi
55
- env :
56
- OPENAI_API_KEY : ${{ secrets.OPENAI_API_KEY }}
57
66
58
67
- name : Run integration tests
59
68
run : pnpm run integrationTests
60
- env :
61
- OPENAI_API_KEY : ${{ secrets.OPENAI_API_KEY }}
You can’t perform that action at this time.
0 commit comments