Mike
Mike
RRailway
Created by Mike on 8/3/2024 in #✋|help
GitHub deployment trigger doesn't fire for "success"
No, these events are fired when Railway sets the PR status check for deployments. All I enabled was Railway PR environments.
6 replies
RRailway
Created by Mike on 8/3/2024 in #✋|help
GitHub deployment trigger doesn't fire for "success"
Sample workflow file:
name: Playwright Tests
on:
deployment_status
# NOTE: If this is uncommented, the workflow never triggers
# types: [success]
env:
PR_DEPLOYMENT_URL: ${{ github.event.deployment_status.environment_url }}
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- name: Debugging
run: echo "Debugging - ${{ toJson(github.event) }}"
- uses: actions/checkout@v4
if: ${{ github.event.deployment.payload.serviceId == '396857de-3201-4e79-8386-ce492a329840' && github.event.deployment.production_environment == false }}
- uses: actions/setup-node@v4
if: ${{ github.event.deployment.payload.serviceId == '396857de-3201-4e79-8386-ce492a329840' && github.event.deployment.production_environment == false }}
with:
node-version: lts/*
- name: Install dependencies
if: ${{ github.event.deployment.payload.serviceId == '396857de-3201-4e79-8386-ce492a329840' && github.event.deployment.production_environment == false }}
run: npm install -g pnpm && pnpm install
- name: Install Playwright Browsers
if: ${{ github.event.deployment.payload.serviceId == '396857de-3201-4e79-8386-ce492a329840' && github.event.deployment.production_environment == false }}
run: pnpm exec playwright install --with-deps
working-directory: ./packages/website
- name: Run Playwright tests
if: ${{ github.event.deployment.payload.serviceId == '396857de-3201-4e79-8386-ce492a329840' && github.event.deployment.production_environment == false }}
run: pnpm exec playwright test
working-directory: ./packages/website
- uses: actions/upload-artifact@v4
if: ${{ always() && github.event.deployment.payload.serviceId == '396857de-3201-4e79-8386-ce492a329840' && github.event.deployment.production_environment == false }}
with:
name: playwright-report
path: playwright-report/

name: Playwright Tests
on:
deployment_status
# NOTE: If this is uncommented, the workflow never triggers
# types: [success]
env:
PR_DEPLOYMENT_URL: ${{ github.event.deployment_status.environment_url }}
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- name: Debugging
run: echo "Debugging - ${{ toJson(github.event) }}"
- uses: actions/checkout@v4
if: ${{ github.event.deployment.payload.serviceId == '396857de-3201-4e79-8386-ce492a329840' && github.event.deployment.production_environment == false }}
- uses: actions/setup-node@v4
if: ${{ github.event.deployment.payload.serviceId == '396857de-3201-4e79-8386-ce492a329840' && github.event.deployment.production_environment == false }}
with:
node-version: lts/*
- name: Install dependencies
if: ${{ github.event.deployment.payload.serviceId == '396857de-3201-4e79-8386-ce492a329840' && github.event.deployment.production_environment == false }}
run: npm install -g pnpm && pnpm install
- name: Install Playwright Browsers
if: ${{ github.event.deployment.payload.serviceId == '396857de-3201-4e79-8386-ce492a329840' && github.event.deployment.production_environment == false }}
run: pnpm exec playwright install --with-deps
working-directory: ./packages/website
- name: Run Playwright tests
if: ${{ github.event.deployment.payload.serviceId == '396857de-3201-4e79-8386-ce492a329840' && github.event.deployment.production_environment == false }}
run: pnpm exec playwright test
working-directory: ./packages/website
- uses: actions/upload-artifact@v4
if: ${{ always() && github.event.deployment.payload.serviceId == '396857de-3201-4e79-8386-ce492a329840' && github.event.deployment.production_environment == false }}
with:
name: playwright-report
path: playwright-report/

6 replies
RRailway
Created by Mike on 8/3/2024 in #✋|help
GitHub deployment trigger doesn't fire for "success"
9f09cbdf-5436-4eda-9997-dcc4b5391f40
6 replies
RRailway
Created by Mike on 1/29/2024 in #✋|help
Postgres password reset
Nice, will do. Thanks Adam
7 replies
RRailway
Created by Mike on 1/29/2024 in #✋|help
Postgres password reset
It's for the "Postgres-migrated" database (ID: 0bc9e645-a1b7-4447-945d-8a8b8d20bdbf) in the "production" environment (ID: b5994d3a-6157-4a70-a785-7b8756ed9c06)
7 replies
RRailway
Created by Mike on 1/29/2024 in #✋|help
Postgres password reset
9f09cbdf-5436-4eda-9997-dcc4b5391f40
7 replies
RRailway
Created by Mike on 1/21/2024 in #✋|help
DB Migration replaced DATABASE_URL with DATABASE_PRIVATE_URL
Migration complete, feel free to mark this as resolved. That was very smooth. A SvelteKit app that uses Prisma to talk to a Postgres database. I've got a few serverless functions I need to turn into services on Railway, but that won't be a big deal. The user experience and attention to detail is impressive throughout Railway 😍!
33 replies
RRailway
Created by Mike on 1/21/2024 in #✋|help
DB Migration replaced DATABASE_URL with DATABASE_PRIVATE_URL
Will do
33 replies
RRailway
Created by Mike on 1/21/2024 in #✋|help
DB Migration replaced DATABASE_URL with DATABASE_PRIVATE_URL
Look at that, https://railway.app/template/sRATcT (SvelteKit with Prisma template)
33 replies
RRailway
Created by Mike on 1/21/2024 in #✋|help
DB Migration replaced DATABASE_URL with DATABASE_PRIVATE_URL
That's alright, I have e2e tests and a seed script to populate test data. Alright I think I'll just go ahead and give that a go
33 replies
RRailway
Created by Mike on 1/21/2024 in #✋|help
DB Migration replaced DATABASE_URL with DATABASE_PRIVATE_URL
Aha, preview I guess?
33 replies
RRailway
Created by Mike on 1/21/2024 in #✋|help
DB Migration replaced DATABASE_URL with DATABASE_PRIVATE_URL
Which previous environments?
33 replies
RRailway
Created by Mike on 1/21/2024 in #✋|help
DB Migration replaced DATABASE_URL with DATABASE_PRIVATE_URL
Ah that's super helpful, thanks for the heads up 🙏
33 replies
RRailway
Created by Mike on 1/21/2024 in #✋|help
DB Migration replaced DATABASE_URL with DATABASE_PRIVATE_URL
Ah yes, found it in the docs
33 replies
RRailway
Created by Mike on 1/21/2024 in #✋|help
DB Migration replaced DATABASE_URL with DATABASE_PRIVATE_URL
I get branch preview URLs too with Railway, right?
33 replies
RRailway
Created by Mike on 1/21/2024 in #✋|help
DB Migration replaced DATABASE_URL with DATABASE_PRIVATE_URL
SvelteKit's Node.js adapter, set the env variables, off we go
33 replies
RRailway
Created by Mike on 1/21/2024 in #✋|help
DB Migration replaced DATABASE_URL with DATABASE_PRIVATE_URL
🙂
33 replies
RRailway
Created by Mike on 1/21/2024 in #✋|help
DB Migration replaced DATABASE_URL with DATABASE_PRIVATE_URL
Yeah I think I know what to do, just have to do it
33 replies
RRailway
Created by Mike on 1/21/2024 in #✋|help
DB Migration replaced DATABASE_URL with DATABASE_PRIVATE_URL
I get the error during the build time already when I run Prisma to execute migrations against the DB, but it would fail at runtime too
33 replies
RRailway
Created by Mike on 1/21/2024 in #✋|help
DB Migration replaced DATABASE_URL with DATABASE_PRIVATE_URL
🙂
33 replies