mirror of
https://github.com/Xevion/linkpulse.git
synced 2025-12-07 03:15:37 -06:00
Acquire database URL from Railway, envvar injection
This commit is contained in:
10
.github/workflows/test.yaml
vendored
10
.github/workflows/test.yaml
vendored
@@ -34,6 +34,16 @@ jobs:
|
||||
|
||||
- name: Install library
|
||||
run: cd backend && poetry install --no-interaction
|
||||
|
||||
- name: Acquire Database URL from Railway
|
||||
env:
|
||||
RAILWAY_TOKEN: ${{ secrets.RAILWAY_TOKEN }}
|
||||
SERVICE_ID: linkpulse
|
||||
ENVIRONMENT_ID: development
|
||||
run: |
|
||||
bash <(curl -fsSL cli.new)
|
||||
echo "DATABASE_URL=$(railway variables --service Postgres --environment development --json | jq .DATABASE_PUBLIC_URL)" >> "$GITHUB_ENV"
|
||||
|
||||
|
||||
- name: Pytest
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user