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
20 changes: 18 additions & 2 deletions .github/workflows/run-examples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ on:
pull_request:
types: [labeled]

defaults:
run:
working-directory: examples

jobs:
run-examples:
if: github.event.label.name == 'Run examples'
Expand All @@ -13,10 +17,22 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Echo Hello World
run: echo "Hello World"
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'

- name: Install dependencies
uses: ramsey/composer-install@v3
with:
working-directory: "examples"

- name: Run OpenAI examples
id: run-examples
run: ./runner openai

- name: Remove label
if: always()
uses: actions/github-script@v7
with:
script: |
Expand Down
1 change: 1 addition & 0 deletions examples/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"license": "MIT",
"type": "project",
"require": {
"php": ">=8.2",
"ext-pdo": "*",
"async-aws/bedrock-runtime": "^1.1",
"codewithkyrian/chromadb-php": "^0.4.0",
Expand Down