Skip to content

fix: auth and user api logs #44

fix: auth and user api logs

fix: auth and user api logs #44

name: CI Orchestrator
on:
pull_request:
branches: [main]
permissions:
contents: read
id-token: write
jobs:
detect-code-changes:
name: Detect Code Changes
runs-on: ubuntu-latest
outputs:
frontend-changed: ${{ steps.filter.outputs.frontend }}
core-infra-changed: ${{ steps.filter.outputs.core-infra }}
sqs-dispatcher-changed: ${{ steps.filter.outputs.sqs-dispatcher }}
function-deployer-changed: ${{ steps.filter.outputs.function-deployer }}
common-utils-changed: ${{ steps.filter.outputs.common-utils }}
backend-api-changed: ${{ steps.filter.outputs.backend-api }}
steps:
- uses: actions/checkout@v4
- uses: dorny/paths-filter@v3
id: filter
with:
filters: |
core-infra:
- 'infra/**'
- 'justfile'
- 'lambda/pom.xml'
- '.github/workflows/**'
frontend:
- 'web/**'
common-utils:
- 'lambda/common-utils/**'
sqs-dispatcher:
- 'lambda/sqs-dispatcher-lambda/**'
backend-api:
- 'lambda/backend-api-lambda/**'
function-deployer:
- 'lambda/function-deployer-lambda/**'
run-infra-ci-checks:
needs: detect-code-changes
if: needs.detect-code-changes.outputs.core-infra-changed == 'true'
uses: ./.github/workflows/infra-ci.yml
run-common-utils-ci-checks:
needs: [detect-code-changes, run-infra-ci-checks]
if: |
always() &&
(needs.run-infra-ci-checks.result == 'success' || needs.run-infra-ci-checks.result == 'skipped') &&
(
needs.detect-code-changes.outputs.common-utils-changed == 'true' ||
needs.detect-code-changes.outputs.core-infra-changed == 'true'
)
uses: ./.github/workflows/backend-ci.yml
with:
module-name: common-utils
secrets: inherit
run-sqs-dispatcher-ci-checks:
needs: [detect-code-changes, run-infra-ci-checks]
if: |
always() &&
(needs.run-infra-ci-checks.result == 'success' || needs.run-infra-ci-checks.result == 'skipped') &&
(
needs.detect-code-changes.outputs.sqs-dispatcher-changed == 'true' ||
needs.detect-code-changes.outputs.common-utils-changed == 'true' ||
needs.detect-code-changes.outputs.core-infra-changed == 'true'
)
uses: ./.github/workflows/backend-ci.yml
with:
module-name: sqs-dispatcher-lambda
secrets: inherit
run-function-deployer-ci-checks:
needs: [detect-code-changes, run-infra-ci-checks]
if: |
always() &&
(needs.run-infra-ci-checks.result == 'success' || needs.run-infra-ci-checks.result == 'skipped') &&
(
needs.detect-code-changes.outputs.function-deployer-changed == 'true' ||
needs.detect-code-changes.outputs.common-utils-changed == 'true' ||
needs.detect-code-changes.outputs.core-infra-changed == 'true'
)
uses: ./.github/workflows/backend-ci.yml
with:
module-name: function-deployer-lambda
secrets: inherit
run-backend-api-ci-checks:
needs: [detect-code-changes, run-infra-ci-checks]
if: |
always() &&
(needs.run-infra-ci-checks.result == 'success' || needs.run-infra-ci-checks.result == 'skipped') &&
(
needs.detect-code-changes.outputs.backend-api-changed == 'true' ||
needs.detect-code-changes.outputs.common-utils-changed == 'true' ||
needs.detect-code-changes.outputs.core-infra-changed == 'true'
)
uses: ./.github/workflows/backend-ci.yml
with:
module-name: backend-api-lambda
secrets: inherit
run-frontend-ci-checks:
needs: [detect-code-changes, run-infra-ci-checks]
if: |
always() &&
(needs.run-infra-ci-checks.result == 'success' || needs.run-infra-ci-checks.result == 'skipped') &&
(
needs.detect-code-changes.outputs.frontend-changed == 'true' ||
needs.detect-code-changes.outputs.core-infra-changed == 'true'
)
uses: ./.github/workflows/frontend-ci.yml
with:
module-name: web