Skip to content

Commit 570d92f

Browse files
committed
fix github actions tests for LLM_MODEL in yml file
1 parent e72e2ae commit 570d92f

1 file changed

Lines changed: 44 additions & 40 deletions

File tree

.github/workflows/pr.yml

Lines changed: 44 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -49,61 +49,65 @@ jobs:
4949
# Create main .env file for agent (mainnet by default)
5050
# Use absolute path for DATABASE_URL to work from any directory
5151
# IMPORTANT: No quotes around DATABASE_URL path!
52+
# IMPORTANT: No leading spaces - heredoc content must start at column 0!
5253
cat > apps/agent/.env << EOF
53-
PORT=9200
54-
EXPO_PUBLIC_MCP_URL=http://localhost:9200
55-
EXPO_PUBLIC_APP_URL=http://localhost:9200
56-
DATABASE_URL=${GITHUB_WORKSPACE}/apps/agent/test.db
57-
OPENAI_API_KEY=${{ secrets.OPENAI_API_KEY }}
58-
LLM_MODEL=gpt-5-mini
59-
DKG_PUBLISH_WALLET=${{ secrets.DKG_Node_Private_key }}
60-
DKG_BLOCKCHAIN=otp:2043
61-
DKG_OTNODE_URL=https://positron.origin-trail.network
62-
EOF
54+
PORT=9200
55+
EXPO_PUBLIC_MCP_URL=http://localhost:9200
56+
EXPO_PUBLIC_APP_URL=http://localhost:9200
57+
DATABASE_URL=${GITHUB_WORKSPACE}/apps/agent/test.db
58+
OPENAI_API_KEY=${{ secrets.OPENAI_API_KEY }}
59+
LLM_MODEL=gpt-5-mini
60+
DKG_PUBLISH_WALLET=${{ secrets.DKG_Node_Private_key }}
61+
DKG_BLOCKCHAIN=otp:2043
62+
DKG_OTNODE_URL=https://positron.origin-trail.network
63+
EOF
6364

6465
# Create root .env file for turbo dev (when running from root directory)
6566
# This is needed because turbo dev runs from root and dotenv looks for .env in cwd
6667
cat > .env << EOF
67-
PORT=9200
68-
EXPO_PUBLIC_MCP_URL=http://localhost:9200
69-
EXPO_PUBLIC_APP_URL=http://localhost:9200
70-
DATABASE_URL=${GITHUB_WORKSPACE}/apps/agent/test.db
71-
OPENAI_API_KEY=${{ secrets.OPENAI_API_KEY }}
72-
DKG_PUBLISH_WALLET=${{ secrets.DKG_Node_Private_key }}
73-
DKG_BLOCKCHAIN=otp:2043
74-
DKG_OTNODE_URL=https://positron.origin-trail.network
75-
EOF
68+
PORT=9200
69+
EXPO_PUBLIC_MCP_URL=http://localhost:9200
70+
EXPO_PUBLIC_APP_URL=http://localhost:9200
71+
DATABASE_URL=${GITHUB_WORKSPACE}/apps/agent/test.db
72+
OPENAI_API_KEY=${{ secrets.OPENAI_API_KEY }}
73+
LLM_MODEL=gpt-5-mini
74+
DKG_PUBLISH_WALLET=${{ secrets.DKG_Node_Private_key }}
75+
DKG_BLOCKCHAIN=otp:2043
76+
DKG_OTNODE_URL=https://positron.origin-trail.network
77+
EOF
7678

7779
# Create development override file
7880
cat > apps/agent/.env.development.local << 'EOF'
79-
# These values will override the .env file during the development
80-
EXPO_PUBLIC_APP_URL=http://localhost:8081
81-
EOF
81+
# These values will override the .env file during the development
82+
EXPO_PUBLIC_APP_URL=http://localhost:8081
83+
EOF
8284

8385
# Create testnet environment file
8486
mkdir -p apps/agent/tests
8587
cat > apps/agent/tests/.env.testing.testnet.local << EOF
86-
PORT=9200
87-
EXPO_PUBLIC_MCP_URL=http://localhost:9200
88-
EXPO_PUBLIC_APP_URL=http://localhost:9200
89-
DATABASE_URL=${GITHUB_WORKSPACE}/apps/agent/test.db
90-
OPENAI_API_KEY=${{ secrets.OPENAI_API_KEY }}
91-
DKG_PUBLISH_WALLET=${{ secrets.DKG_Node_Private_key }}
92-
DKG_BLOCKCHAIN=otp:20430
93-
DKG_OTNODE_URL=https://v6-pegasus-node-02.origin-trail.network
94-
EOF
88+
PORT=9200
89+
EXPO_PUBLIC_MCP_URL=http://localhost:9200
90+
EXPO_PUBLIC_APP_URL=http://localhost:9200
91+
DATABASE_URL=${GITHUB_WORKSPACE}/apps/agent/test.db
92+
OPENAI_API_KEY=${{ secrets.OPENAI_API_KEY }}
93+
LLM_MODEL=gpt-5-mini
94+
DKG_PUBLISH_WALLET=${{ secrets.DKG_Node_Private_key }}
95+
DKG_BLOCKCHAIN=otp:20430
96+
DKG_OTNODE_URL=https://v6-pegasus-node-02.origin-trail.network
97+
EOF
9598

9699
# Create mainnet environment file
97100
cat > apps/agent/tests/.env.testing.mainnet.local << EOF
98-
PORT=9200
99-
EXPO_PUBLIC_MCP_URL=http://localhost:9200
100-
EXPO_PUBLIC_APP_URL=http://localhost:9200
101-
DATABASE_URL=${GITHUB_WORKSPACE}/apps/agent/test.db
102-
OPENAI_API_KEY=${{ secrets.OPENAI_API_KEY }}
103-
DKG_PUBLISH_WALLET=${{ secrets.DKG_Node_Private_key }}
104-
DKG_BLOCKCHAIN=otp:2043
105-
DKG_OTNODE_URL=https://positron.origin-trail.network
106-
EOF
101+
PORT=9200
102+
EXPO_PUBLIC_MCP_URL=http://localhost:9200
103+
EXPO_PUBLIC_APP_URL=http://localhost:9200
104+
DATABASE_URL=${GITHUB_WORKSPACE}/apps/agent/test.db
105+
OPENAI_API_KEY=${{ secrets.OPENAI_API_KEY }}
106+
LLM_MODEL=gpt-5-mini
107+
DKG_PUBLISH_WALLET=${{ secrets.DKG_Node_Private_key }}
108+
DKG_BLOCKCHAIN=otp:2043
109+
DKG_OTNODE_URL=https://positron.origin-trail.network
110+
EOF
107111

108112
echo "Environment files created successfully!"
109113

0 commit comments

Comments
 (0)