AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
fix(github): Added in fallback variables for postgres testing (#7715)
lelcruz60d25135e661
diff --git a/.github/workflows/autogpt-server-ci.yml b/.github/workflows/autogpt-server-ci.ymlindex a996ccc0c4..0551ae6e70 100644--- a/.github/workflows/autogpt-server-ci.yml+++ b/.github/workflows/autogpt-server-ci.yml@@ -39,8 +39,8 @@ jobs:if: matrix.db-platform == 'postgres'uses: ikalnytskyi/action-setup-postgres@v6with:- username: ${{ secrets.DB_USER }}- password: ${{ secrets.DB_PASS }}+ username: ${{ secrets.DB_USER || 'postgres' }}+ password: ${{ secrets.DB_PASS || 'postgres' }}database: postgresport: 5432id: postgres@@ -145,13 +145,13 @@ jobs:CI: truePLAIN_OUTPUT: TrueOPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}- DB_USER: ${{ secrets.DB_USER }}- DB_PASS: ${{ secrets.DB_PASS }}+ DB_USER: ${{ secrets.DB_USER || 'postgres' }}+ DB_PASS: ${{ secrets.DB_PASS || 'postgres' }}DB_NAME: postgresDB_PORT: 5432RUN_ENV: localPORT: 8080- DATABASE_URL: postgresql://${{ secrets.DB_USER }}:${{ secrets.DB_PASS }}@localhost:5432/${{ secrets.DB_NAME }}+ DATABASE_URL: postgresql://${{ secrets.DB_USER || 'postgres' }}:${{ secrets.DB_PASS || 'postgres' }}@localhost:5432/${{ secrets.DB_NAME || 'postgres'}}# - name: Upload coverage reports to Codecov# uses: codecov/codecov-action@v4