From c6179ca9d5af8ccea8794889c000a37f4177f05d Mon Sep 17 00:00:00 2001 From: Isaac Francisco <78627776+isahers1@users.noreply.github.com> Date: Wed, 10 Sep 2025 16:45:49 -0700 Subject: [PATCH] fix(cli): fix CLI integration test (#6129) CLI integration tests were failing due to missing env vars, just needed to copy to the places where the build commands were running from --- .github/workflows/_integration_test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/_integration_test.yml b/.github/workflows/_integration_test.yml index 89097d600..5655ae9e9 100644 --- a/.github/workflows/_integration_test.yml +++ b/.github/workflows/_integration_test.yml @@ -58,8 +58,8 @@ jobs: # Build the image for this example langgraph build -t ${{ matrix.example.tag }} # Prepare environment file from local or parent example directory - if [ -f .env.example ]; then cp .env.example .env; elif [ -f ../.env.example ]; then cp ../.env.example .env; fi - if [ -n "${{ secrets.LANGSMITH_API_KEY }}" ]; then echo "LANGSMITH_API_KEY=${{ secrets.LANGSMITH_API_KEY }}" >> .env; fi + if [ -f .env.example ]; then cp .env.example .env; elif [ -f ../.env.example ]; then cp ../.env.example .env && cp ../.env.example ../.env; fi + if [ -n "${{ secrets.LANGSMITH_API_KEY }}" ]; then echo "LANGSMITH_API_KEY=${{ secrets.LANGSMITH_API_KEY }}" >> .env; if [ -f ../.env ]; then echo "LANGSMITH_API_KEY=${{ secrets.LANGSMITH_API_KEY }}" >> ../.env; fi; fi # Run the integration test using the built tag # Compute repo root to reference the shared script robustly REPO_ROOT=$(git rev-parse --show-toplevel)