Skip to content

Commit 4f5527e

Browse files
committed
try wait-on action
1 parent a5341c0 commit 4f5527e

File tree

1 file changed

+23
-7
lines changed

1 file changed

+23
-7
lines changed

.github/workflows/dojo-e2e.yml

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -69,17 +69,33 @@ jobs:
6969
echo "OPENAI_API_KEY=${OPENAI_API_KEY}" > python/ag_ui_langgraph/.env
7070
echo "LANGSMITH_API_KEY=${LANGSMITH_API_KEY}" >> python/ag_ui_langgraph/.env
7171
72-
- name: Run dojo+agents and tests
73-
working-directory: typescript-sdk/apps/dojo/e2e
72+
- name: Run dojo+agents
73+
uses: JarvusInnovations/background-action@v1
7474
env:
7575
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
7676
LANGSMITH_API_KEY: ${{ secrets.LANGSMITH_API_KEY }}
77+
with:
78+
run: |
79+
node ../scripts/run-dojo-everything.js
80+
working-directory: typescript-sdk/apps/dojo/e2e
81+
wait-on: |
82+
http://localhost:9999
83+
tcp:localhost:8000
84+
tcp:localhost:8001
85+
tcp:localhost:8002
86+
tcp:localhost:8003
87+
tcp:localhost:8004
88+
tcp:localhost:8005
89+
tcp:localhost:8006
90+
tcp:localhost:8007
91+
tcp:localhost:8008
92+
tcp:localhost:8009
93+
94+
- name: Run tests
95+
working-directory: typescript-sdk/apps/dojo/e2e
96+
env:
7797
BASE_URL: http://localhost:9999
78-
run: |
79-
node ../scripts/run-dojo-everything.js &
80-
npx wait-port 9999
81-
sleep 10
82-
pnpm test
98+
run: pnpm test
8399

84100
- name: Upload traces
85101
if: always() # Uploads artifacts even if tests fail

0 commit comments

Comments
 (0)