Skip to content

feat: add 'all' profile to run full stack + playground in one command #34

feat: add 'all' profile to run full stack + playground in one command

feat: add 'all' profile to run full stack + playground in one command #34

Workflow file for this run

name: CI
on:
push:
branches: [main, develop]
pull_request:
branches: [main, develop]
jobs:
changes:
runs-on: ubuntu-latest
outputs:
backend: ${{ steps.changes.outputs.backend }}
frontend: ${{ steps.changes.outputs.frontend }}
learning: ${{ steps.changes.outputs.learning }}
steps:
- uses: actions/checkout@v4
- uses: dorny/paths-filter@v2
id: changes
with:
filters: |
backend:
- 'rag-api/**'
- 'pnpm-lock.yaml'
- 'pnpm-workspace.yaml'
- '.github/workflows/**'
frontend:
- 'rag-ui/**'
- 'pnpm-lock.yaml'
- 'pnpm-workspace.yaml'
- '.github/workflows/**'
learning:
- 'packages/rag-learning/**'
- 'packages/rag-playground/**'
- 'pnpm-lock.yaml'
- 'pnpm-workspace.yaml'
- '.github/workflows/**'
backend:
needs: changes
if: ${{ needs.changes.outputs.backend == 'true' }}
uses: ./.github/workflows/test-backend.yml
frontend:
needs: changes
if: ${{ needs.changes.outputs.frontend == 'true' }}
uses: ./.github/workflows/test-frontend.yml

Check failure on line 47 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci.yml

Invalid workflow file

error parsing called workflow ".github/workflows/ci.yml" -> "./.github/workflows/test-frontend.yml" (source branch with sha:206a337c9a3d8f7049b6186e1347424fb34aa02d) : workflow is not reusable as it is missing a `on.workflow_call` trigger
learning:
needs: changes
if: ${{ needs.changes.outputs.learning == 'true' }}
uses: ./.github/workflows/test-learning.yml
# Security scan job kept but skipped; set `if` to always() && (...) and uncomment triggers in security.yml to re-enable.
security:
needs: [backend, frontend, learning]
if: false
uses: ./.github/workflows/security.yml
docker:
needs: [backend, frontend, learning]
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: ./.github/workflows/docker-build.yml
secrets: inherit