Skip to content

Commit 4912218

Browse files
committed
try wait-on action
1 parent d57603d commit 4912218

File tree

1 file changed

+18
-7
lines changed

1 file changed

+18
-7
lines changed

.github/workflows/dojo-e2e.yml

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -69,17 +69,28 @@ 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 }}
7777
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
78+
with:
79+
run: |
80+
node ../scripts/run-dojo-everything.js
81+
working-directory: typescript-sdk/apps/dojo/e2e
82+
wait-on: |
83+
http://localhost:9999
84+
tcp:localhost:8000
85+
tcp:localhost:8001
86+
tcp:localhost:8002
87+
tcp:localhost:8003
88+
tcp:localhost:8004
89+
tcp:localhost:8005
90+
tcp:localhost:8006
91+
tcp:localhost:8007
92+
tcp:localhost:8008
93+
tcp:localhost:8009
8394
8495
- name: Upload traces
8596
if: always() # Uploads artifacts even if tests fail

0 commit comments

Comments
 (0)