Skip to content

[feat]: updated observability table with virtual table #455

[feat]: updated observability table with virtual table

[feat]: updated observability table with virtual table #455

name: "14 - check PR preview"
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
paths:
- 'api/**'
- 'web/**'
- 'services/**'
- 'sdk/**'
- 'hosting/railway/**'
- '.github/workflows/14-check-pr-preview.yml'
- '.github/workflows/40-railway.yml'
- '.github/workflows/41-railway-setup.yml'
- '.github/workflows/42-railway-build.yml'
- '.github/workflows/43-railway-deploy.yml'
- '.github/workflows/44-railway-tests.yml'
- '.github/workflows/45-railway-cleanup.yml'
workflow_dispatch:
inputs:
pr_number:
description: "PR number"
required: true
type: string
permissions:
checks: write
contents: read
packages: write
pull-requests: write
concurrency:
group: railway-preview-automation-${{ github.event.pull_request.number || inputs.pr_number || github.ref_name }}
cancel-in-progress: true
jobs:
build:
if: github.event_name == 'workflow_dispatch' || !github.event.pull_request.draft
uses: ./.github/workflows/42-railway-build.yml
with:
pr_number: ${{ github.event.pull_request.number || inputs.pr_number }}
setup:
needs: [build]
if: needs.build.result == 'success'
uses: ./.github/workflows/41-railway-setup.yml
with:
pr_number: ${{ needs.build.outputs.pr_number }}
image_tag: ${{ needs.build.outputs.image_tag }}
secrets: inherit
deploy:
needs: [build, setup]
if: |
needs.build.result == 'success' &&
needs.setup.result == 'success'
uses: ./.github/workflows/43-railway-deploy.yml
with:
pr_number: ${{ needs.build.outputs.pr_number }}
image_tag: ${{ needs.build.outputs.image_tag }}
secrets: inherit
tests:
needs: [deploy]
if: needs.deploy.outputs.preview_url != ''
uses: ./.github/workflows/44-railway-tests.yml
with:
agenta_web_url: ${{ needs.deploy.outputs.preview_url }}
layers: acceptance,integration
packages: web-only
secrets: inherit