Skip to content

Commit

Permalink
Try conditionally setting DATABSE_URL env variable in job.tests.env
Browse files Browse the repository at this point in the history
It appears that github was possibly masking the root:root part of
the database url.
  • Loading branch information
amstilp committed May 1, 2024
1 parent 60a82d1 commit 20f1531
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,10 @@ jobs:
MYSQL_ROOT_PASSWORD: root
options: --tmpfs /var/lib/mysql

env:
DATABASE_URL: ${{ matrix.backend == 'sqlite' && 'sqlite:///db.sqlite3' || 'mysql://root:[email protected]:3306/mysql' }}

steps:
- name: Set environment variables
if: ${{ matrix.backend == 'mariadb' }}
run: |
echo "DATABASE_URL==mysql://root:[email protected]:3306/mysql" >> $GITHUB_ENV

- name: Checkout Code Repository
uses: actions/checkout@v4
Expand Down

0 comments on commit 20f1531

Please sign in to comment.