File tree Expand file tree Collapse file tree 2 files changed +19
-2
lines changed Expand file tree Collapse file tree 2 files changed +19
-2
lines changed Original file line number Diff line number Diff line change 4
4
pull_request :
5
5
types : [labeled]
6
6
7
+ defaults :
8
+ run :
9
+ working-directory : examples
10
+
7
11
jobs :
8
12
run-examples :
9
13
if : github.event.label.name == 'Run examples'
@@ -13,10 +17,22 @@ jobs:
13
17
- name : Checkout code
14
18
uses : actions/checkout@v4
15
19
16
- - name : Echo Hello World
17
- run : echo "Hello World"
20
+ - name : Setup PHP
21
+ uses : shivammathur/setup-php@v2
22
+ with :
23
+ php-version : ' 8.2'
24
+
25
+ - name : Install dependencies
26
+ uses : ramsey/composer-install@v3
27
+ with :
28
+ working-directory : " examples"
29
+
30
+ - name : Run OpenAI examples
31
+ id : run-examples
32
+ run : ./runner openai
18
33
19
34
- name : Remove label
35
+ if : always()
20
36
uses : actions/github-script@v7
21
37
with :
22
38
script : |
Original file line number Diff line number Diff line change 4
4
"license" : " MIT" ,
5
5
"type" : " project" ,
6
6
"require" : {
7
+ "php" : " >=8.2" ,
7
8
"ext-pdo" : " *" ,
8
9
"async-aws/bedrock-runtime" : " ^1.1" ,
9
10
"codewithkyrian/chromadb-php" : " ^0.4.0" ,
You can’t perform that action at this time.
0 commit comments