Skip to content

Commit

Permalink
ci: Rename all GitHub Action workflows to "parent/child" instead of "…
Browse files Browse the repository at this point in the history
…caller/called"
  • Loading branch information
j1elo committed Jul 18, 2024
1 parent 693e26a commit 2f685f8
Show file tree
Hide file tree
Showing 11 changed files with 298 additions and 298 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -12,29 +12,29 @@ on:

jobs:
qa-pom:
uses: "./.github/workflows/clients-java.called.yaml"
uses: "./.github/workflows/clients-java.child.yaml"
with:
directory: "clients/java/qa-pom/"
copyArtifacts: false
secrets: inherit

module-creator:
uses: "./.github/workflows/clients-java.called.yaml"
uses: "./.github/workflows/clients-java.child.yaml"
with:
directory: "server/module-creator/"
copyArtifacts: false
secrets: inherit

maven-plugin:
needs: ["module-creator"]
uses: "./.github/workflows/clients-java.called.yaml"
uses: "./.github/workflows/clients-java.child.yaml"
with:
directory: "clients/java/maven-plugin/"
secrets: inherit

module-core:
needs: ["maven-plugin"]
uses: "./.github/workflows/clients-java.called.yaml"
uses: "./.github/workflows/clients-java.child.yaml"
with:
directory: "server/module-core/"
genModuleEnable: true
Expand All @@ -43,7 +43,7 @@ jobs:

module-elements:
needs: ["module-core"]
uses: "./.github/workflows/clients-java.called.yaml"
uses: "./.github/workflows/clients-java.child.yaml"
with:
directory: "server/module-elements/"
genModuleEnable: true
Expand All @@ -52,7 +52,7 @@ jobs:

module-filters:
needs: ["module-elements"]
uses: "./.github/workflows/clients-java.called.yaml"
uses: "./.github/workflows/clients-java.child.yaml"
with:
directory: "server/module-filters/"
genModuleEnable: true
Expand All @@ -61,14 +61,14 @@ jobs:

client:
needs: ["qa-pom", "module-filters"]
uses: "./.github/workflows/clients-java.called.yaml"
uses: "./.github/workflows/clients-java.child.yaml"
with:
directory: "clients/java/"
secrets: inherit

module-chroma:
needs: ["client"]
uses: "./.github/workflows/clients-java.called.yaml"
uses: "./.github/workflows/clients-java.child.yaml"
with:
directory: "server/module-examples/chroma/"
genModuleEnable: true
Expand All @@ -78,7 +78,7 @@ jobs:
# Unavailable since Kurento 7.0.0
#module-crowddetector:
# needs: ["client"]
# uses: "./.github/workflows/clients-java.called.yaml"
# uses: "./.github/workflows/clients-java.child.yaml"
# with:
# directory: "server/module-examples/crowddetector/"
# genModuleEnable: true
Expand All @@ -87,7 +87,7 @@ jobs:

module-datachannelexample:
needs: ["client"]
uses: "./.github/workflows/clients-java.called.yaml"
uses: "./.github/workflows/clients-java.child.yaml"
with:
directory: "server/module-examples/datachannelexample/"
genModuleEnable: true
Expand All @@ -97,7 +97,7 @@ jobs:
# Unavailable since Kurento 7.0.0
#module-markerdetector:
# needs: ["client"]
# uses: "./.github/workflows/clients-java.called.yaml"
# uses: "./.github/workflows/clients-java.child.yaml"
# with:
# directory: "server/module-examples/markerdetector/"
# genModuleEnable: true
Expand All @@ -107,7 +107,7 @@ jobs:
# Unavailable since Kurento 7.0.0
#module-platedetector:
# needs: ["client"]
# uses: "./.github/workflows/clients-java.called.yaml"
# uses: "./.github/workflows/clients-java.child.yaml"
# with:
# directory: "server/module-examples/platedetector/"
# genModuleEnable: true
Expand All @@ -117,7 +117,7 @@ jobs:
# Unavailable since Kurento 7.0.0
#module-pointerdetector:
# needs: ["client"]
# uses: "./.github/workflows/clients-java.called.yaml"
# uses: "./.github/workflows/clients-java.child.yaml"
# with:
# directory: "server/module-examples/pointerdetector/"
# genModuleEnable: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ on:

jobs:
kurento-utils-js:
uses: "./.github/workflows/clients-javascript.called.yaml"
uses: "./.github/workflows/clients-javascript.child.yaml"
with:
jobRelease: ${{ inputs.jobRelease }}
directory: "browser/kurento-utils-js/"
secrets: inherit

module-core:
uses: "./.github/workflows/clients-javascript.called.yaml"
uses: "./.github/workflows/clients-javascript.child.yaml"
with:
jobRelease: ${{ inputs.jobRelease }}
directory: "server/module-core/"
Expand All @@ -33,7 +33,7 @@ jobs:
secrets: inherit

module-elements:
uses: "./.github/workflows/clients-javascript.called.yaml"
uses: "./.github/workflows/clients-javascript.child.yaml"
with:
jobRelease: ${{ inputs.jobRelease }}
directory: "server/module-elements/"
Expand All @@ -42,7 +42,7 @@ jobs:
secrets: inherit

module-filters:
uses: "./.github/workflows/clients-javascript.called.yaml"
uses: "./.github/workflows/clients-javascript.child.yaml"
with:
jobRelease: ${{ inputs.jobRelease }}
directory: "server/module-filters/"
Expand All @@ -51,22 +51,22 @@ jobs:
secrets: inherit

jsonrpc:
uses: "./.github/workflows/clients-javascript.called.yaml"
uses: "./.github/workflows/clients-javascript.child.yaml"
with:
jobRelease: ${{ inputs.jobRelease }}
directory: "clients/javascript/jsonrpc/"
secrets: inherit

client:
needs: ["module-core", "module-elements", "module-filters", "jsonrpc"]
uses: "./.github/workflows/clients-javascript.called.yaml"
uses: "./.github/workflows/clients-javascript.child.yaml"
with:
jobRelease: ${{ inputs.jobRelease }}
directory: "clients/javascript/client/"
secrets: inherit

module-chroma:
uses: "./.github/workflows/clients-javascript.called.yaml"
uses: "./.github/workflows/clients-javascript.child.yaml"
with:
jobRelease: ${{ inputs.jobRelease }}
directory: "server/module-examples/chroma/"
Expand All @@ -77,7 +77,7 @@ jobs:
#module-crowddetector:

module-datachannelexample:
uses: "./.github/workflows/clients-javascript.called.yaml"
uses: "./.github/workflows/clients-javascript.child.yaml"
with:
jobRelease: ${{ inputs.jobRelease }}
directory: "server/module-examples/datachannelexample/"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ jobs:
jobRelease: ${{ inputs.jobRelease }}

module-creator:
uses: "./.github/workflows/server-buildpackage.called.yaml"
uses: "./.github/workflows/server-buildpackage.child.yaml"
with:
jobDistros: "${{ inputs.jobDistros }}"
jobGitName: "${{ inputs.jobGitName }}"
Expand All @@ -90,7 +90,7 @@ jobs:
copyArtifacts: false

cmake-utils:
uses: "./.github/workflows/server-buildpackage.called.yaml"
uses: "./.github/workflows/server-buildpackage.child.yaml"
with:
jobDistros: "${{ inputs.jobDistros }}"
jobGitName: "${{ inputs.jobGitName }}"
Expand All @@ -101,7 +101,7 @@ jobs:

jsonrpc:
needs: ["cmake-utils"]
uses: "./.github/workflows/server-buildpackage.called.yaml"
uses: "./.github/workflows/server-buildpackage.child.yaml"
with:
jobDistros: "${{ inputs.jobDistros }}"
jobGitName: "${{ inputs.jobGitName }}"
Expand All @@ -111,7 +111,7 @@ jobs:

module-core:
needs: ["module-creator", "cmake-utils", "jsonrpc"]
uses: "./.github/workflows/server-buildpackage.called.yaml"
uses: "./.github/workflows/server-buildpackage.child.yaml"
with:
jobDistros: "${{ inputs.jobDistros }}"
jobGitName: "${{ inputs.jobGitName }}"
Expand All @@ -121,7 +121,7 @@ jobs:

module-elements:
needs: ["openh264-gst-plugin", "libnice", "module-core"]
uses: "./.github/workflows/server-buildpackage.called.yaml"
uses: "./.github/workflows/server-buildpackage.child.yaml"
with:
jobDistros: "${{ inputs.jobDistros }}"
jobGitName: "${{ inputs.jobGitName }}"
Expand All @@ -131,7 +131,7 @@ jobs:

module-filters:
needs: ["module-elements"]
uses: "./.github/workflows/server-buildpackage.called.yaml"
uses: "./.github/workflows/server-buildpackage.child.yaml"
with:
jobDistros: "${{ inputs.jobDistros }}"
jobGitName: "${{ inputs.jobGitName }}"
Expand All @@ -141,7 +141,7 @@ jobs:

media-server:
needs: ["libsrtp", "gst-plugins-good", "module-filters"]
uses: "./.github/workflows/server-buildpackage.called.yaml"
uses: "./.github/workflows/server-buildpackage.child.yaml"
with:
jobDistros: "${{ inputs.jobDistros }}"
jobGitName: "${{ inputs.jobGitName }}"
Expand All @@ -151,7 +151,7 @@ jobs:

module-chroma:
needs: ["module-filters"]
uses: "./.github/workflows/server-buildpackage.called.yaml"
uses: "./.github/workflows/server-buildpackage.child.yaml"
with:
jobDistros: "${{ inputs.jobDistros }}"
jobGitName: "${{ inputs.jobGitName }}"
Expand All @@ -161,7 +161,7 @@ jobs:

module-datachannelexample:
needs: ["module-filters"]
uses: "./.github/workflows/server-buildpackage.called.yaml"
uses: "./.github/workflows/server-buildpackage.child.yaml"
with:
jobDistros: "${{ inputs.jobDistros }}"
jobGitName: "${{ inputs.jobGitName }}"
Expand All @@ -171,7 +171,7 @@ jobs:

deploy-deb:
needs: ["media-server", "module-chroma", "module-datachannelexample"]
uses: "./.github/workflows/server-deploy-debian.called.yaml"
uses: "./.github/workflows/server-deploy-debian.child.yaml"
with:
jobDistros: "${{ inputs.jobDistros }}"
jobRelease: ${{ inputs.jobRelease }}
Expand All @@ -181,7 +181,7 @@ jobs:

deploy-docker:
needs: ["deploy-deb"]
uses: "./.github/workflows/server-deploy-docker.called.yaml"
uses: "./.github/workflows/server-deploy-docker.child.yaml"
with:
jobDistros: "${{ inputs.jobDistros }}"
jobRelease: ${{ inputs.jobRelease }}
Expand All @@ -194,6 +194,6 @@ jobs:
# TODO: Move script to use Kurento ci-scripts/ and not openvidu ci-scripts/
# deploy-aws:
# needs: ["media-server"]
# uses: "./.github/workflows/server-deploy-aws.called.yaml"
# uses: "./.github/workflows/server-deploy-aws.child.yaml"
# with:
# jobRelease: ${{ inputs.jobRelease }}
36 changes: 18 additions & 18 deletions ci-scripts/README.d/scripts-dependencies.dot
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,20 @@ digraph scripts {
{
rank = "same";

"clients-java.caller.yaml";
"clients-javascript.caller.yaml";
"clients-java.parent.yaml";
"clients-javascript.parent.yaml";
"doc-kurento.yaml";
"docker-kurento-buildpackage.yaml";
"docker-kurento-ci-buildtools.yaml";
"server.caller.yaml";
"server.parent.yaml";
}

// Root parent jobs.
"clients-java.caller.yaml" -> {
"clients-java.called.yaml"
"clients-java.parent.yaml" -> {
"clients-java.child.yaml"
};
"clients-javascript.caller.yaml" -> {
"clients-javascript.called.yaml"
"clients-javascript.parent.yaml" -> {
"clients-javascript.child.yaml"
};
"doc-kurento.yaml" -> {
"ci_job_deploy_doc.sh"
Expand All @@ -38,32 +38,32 @@ digraph scripts {
"docker-kurento-ci-buildtools.yaml" -> {
"container_build.sh"
};
"server.caller.yaml" -> {
"server-buildpackage.called.yaml"
"server-deploy-aws.called.yaml"
"server-deploy-debian.called.yaml"
"server-deploy-docker.called.yaml"
"server.parent.yaml" -> {
"server-buildpackage.child.yaml"
"server-deploy-aws.child.yaml"
"server-deploy-debian.child.yaml"
"server-deploy-docker.child.yaml"
};

// Child jobs ("reusable workflows")
"clients-java.called.yaml" -> {
"clients-java.child.yaml" -> {
"ci_job_deploy_java.sh"
"ci_job_generate_module.sh"
};
"clients-javascript.called.yaml" -> {
"clients-javascript.child.yaml" -> {
"ci_job_deploy_js.sh"
"ci_job_generate_module.sh"
};
"server-buildpackage.called.yaml" -> {
"server-buildpackage.child.yaml" -> {
"ci_job_package_debian.sh"
};
"server-deploy-aws.called.yaml" -> {
"server-deploy-aws.child.yaml" -> {
"ci_job_deploy_aws_cf.sh"
};
"server-deploy-debian.called.yaml" -> {
"server-deploy-debian.child.yaml" -> {
"ci_job_deploy_debian.sh"
};
"server-deploy-docker.called.yaml" -> {
"server-deploy-docker.child.yaml" -> {
"ci_job_deploy_docker.sh"
"ci_job_deploy_docker_asan.sh"
};
Expand Down
Loading

0 comments on commit 2f685f8

Please sign in to comment.