name: ILUVATAR-CI
on:
  pull_request:
    types: [opened, synchronize]
    branches: [develop, release/**]
permissions: read-all

concurrency:
  group: ${{ github.event.pull_request.number }}-${{ github.workflow }}
  cancel-in-progress: true

jobs:
  clone:
    name: FD-Clone-Linux-ILUVATAR
    uses: ./.github/workflows/_clone_linux.yml
    secrets:
      github-token: ${{ secrets.GITHUB_TOKEN }}

  iluvatar_test:
    name: Run iluvatar Tests
    needs: [clone]
    uses: ./.github/workflows/_iluvatar_cases.yml
    with:
      DOCKER_IMAGE: ccr-2vdh3abv-pub.cnc.bj.baidubce.com/device/paddle-ixuca:3.3.0-20260312
      FASTDEPLOY_ARCHIVE_URL: ${{ needs.clone.outputs.repo_archive_url }}
    secrets:
      github-token: ${{ secrets.GITHUB_TOKEN }}
