Skip to content

Commit

Permalink
Added matrix modes
Browse files Browse the repository at this point in the history
  • Loading branch information
goruha committed Nov 30, 2023
1 parent 8ed71ea commit 246f39a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 260 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-positive.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,5 @@ jobs:

- uses: nick-fields/assert-action@v1
with:
expected: '{"include":['
expected: '{"include":[{"name":"core-analytics","items":"{\"include\":[{\"component\":\"datadog-integration\",\"component_type\":\"terraform\",\"component_path\":\"components/terraform/datadog-integration\",\"stack\":\"core-gbl-analytics\",\"stack_slug\":\"core-gbl-analytics-datadog-integration\",\"spacelift_stack\":\"core-gbl-analytics-datadog-integration\",\"affected\":\"component\"}]}"},{"name":"core-artifacts","items":"{\"include\":[{\"component\":\"datadog-integration\",\"component_type\":\"terraform\",\"component_path\":\"components/terraform/datadog-integration\",\"stack\":\"core-gbl-artifacts\",\"stack_slug\":\"core-gbl-artifacts-datadog-integration\",\"spacelift_stack\":\"core-gbl-artifacts-datadog-integration\",\"affected\":\"component\"}]}"},{"name":"core-audit","items":"{\"include\":[{\"component\":\"datadog-integration\",\"component_type\":\"terraform\",\"component_path\":\"components/terraform/datadog-integration\",\"stack\":\"core-gbl-audit\",\"stack_slug\":\"core-gbl-audit-datadog-integration\",\"affected\":\"component\"}]}"},{"name":"core-auto","items":"{\"include\":[{\"component\":\"datadog-integration\",\"component_type\":\"terraform\",\"component_path\":\"components/terraform/datadog-integration\",\"stack\":\"core-gbl-auto\",\"stack_slug\":\"core-gbl-auto-datadog-integration\",\"spacelift_stack\":\"core-gbl-auto-datadog-integration\",\"affected\":\"component\"},{\"component\":\"infrastructure-cplive-core\",\"component_type\":\"terraform\",\"component_path\":\"components/terraform/spacelift\",\"stack\":\"core-gbl-auto\",\"stack_slug\":\"core-gbl-auto-infrastructure-cplive-core\",\"spacelift_stack\":\"core-gbl-auto-infrastructure-cplive-core\",\"affected\":\"stack.vars\"},{\"component\":\"infrastructure-cplive-plat\",\"component_type\":\"terraform\",\"component_path\":\"components/terraform/spacelift\",\"stack\":\"core-gbl-auto\",\"stack_slug\":\"core-gbl-auto-infrastructure-cplive-plat\",\"spacelift_stack\":\"core-gbl-auto-infrastructure-cplive-plat\",\"affected\":\"stack.vars\"},{\"component\":\"acm\",\"component_type\":\"terraform\",\"component_path\":\"components/terraform/acm\",\"stack\":\"core-ue2-auto\",\"stack_slug\":\"core-ue2-auto-acm\",\"spacelift_stack\":\"core-ue2-auto-acm\",\"affected\":\"component\"},{\"component\":\"ecr\",\"component_type\":\"terraform\",\"component_path\":\"components/terraform/ecr\",\"stack\":\"core-ue2-auto\",\"stack_slug\":\"core-ue2-auto-ecr\",\"spacelift_stack\":\"core-ue2-auto-ecr\",\"affected\":\"stack.vars\"},{\"component\":\"eks/actions-runner-controller\",\"component_type\":\"terraform\",\"component_path\":\"components/terraform/eks/actions-runner-controller\",\"stack\":\"core-ue2-auto\",\"stack_slug\":\"core-ue2-auto-eks-actions-runner-controller\",\"spacelift_stack\":\"core-ue2-auto-eks-actions-runner-controller\",\"affected\":\"component\"},{\"component\":\"eks/actions-runner-controller/public\",\"component_type\":\"terraform\",\"component_path\":\"components/terraform/eks/actions-runner-controller\",\"stack\":\"core-ue2-auto\",\"stack_slug\":\"core-ue2-auto-eks-actions-runner-controller-public\",\"spacelift_stack\":\"core-ue2-auto-eks-actions-runner-controller-public\",\"affected\":\"component\"},{\"component\":\"eks/cluster\",\"component_type\":\"terraform\",\"component_path\":\"components/terraform/eks/cluster\",\"stack\":\"core-ue2-auto\",\"stack_slug\":\"core-ue2-auto-eks-cluster\",\"spacelift_stack\":\"core-ue2-auto-eks-cluster\",\"affected\":\"component\"},{\"component\":\"eks/karpenter-provisioner\",\"component_type\":\"terraform\",\"component_path\":\"components/terraform/eks/karpenter-provisioner\",\"stack\":\"core-ue2-auto\",\"stack_slug\":\"core-ue2-auto-eks-karpenter-provisioner\",\"spacelift_stack\":\"core-ue2-auto-eks-karpenter-provisioner\",\"affected\":\"stack.vars\"}]}"},{"name":"core-corp","items":"{\"include\":[{\"component\":\"datadog-integration\",\"component_type\":\"terraform\",\"component_path\":\"components/terraform/datadog-integration\",\"stack\":\"core-gbl-corp\",\"stack_slug\":\"core-gbl-corp-datadog-integration\",\"spacelift_st'
actual: "${{ needs.test.outputs.matrix }}"
259 changes: 0 additions & 259 deletions fixtures/mock-atmos-describe-affected.json
Original file line number Diff line number Diff line change
@@ -1,263 +1,4 @@
[
{
"component": "datadog-integration",
"component_type": "terraform",
"component_path": "components/terraform/datadog-integration",
"stack": "core-gbl-dns",
"stack_slug": "core-gbl-dns-datadog-integration",
"spacelift_stack": "core-gbl-dns-datadog-integration",
"affected": "component"
},
{
"component": "datadog-integration",
"component_type": "terraform",
"component_path": "components/terraform/datadog-integration",
"stack": "core-gbl-corp",
"stack_slug": "core-gbl-corp-datadog-integration",
"spacelift_stack": "core-gbl-corp-datadog-integration",
"affected": "component"
},
{
"component": "datadog-integration",
"component_type": "terraform",
"component_path": "components/terraform/datadog-integration",
"stack": "core-gbl-analytics",
"stack_slug": "core-gbl-analytics-datadog-integration",
"spacelift_stack": "core-gbl-analytics-datadog-integration",
"affected": "component"
},
{
"component": "datadog-integration",
"component_type": "terraform",
"component_path": "components/terraform/datadog-integration",
"stack": "core-gbl-security",
"stack_slug": "core-gbl-security-datadog-integration",
"affected": "component"
},
{
"component": "eks/cluster",
"component_type": "terraform",
"component_path": "components/terraform/eks/cluster",
"stack": "core-ue2-auto",
"stack_slug": "core-ue2-auto-eks-cluster",
"spacelift_stack": "core-ue2-auto-eks-cluster",
"affected": "component"
},
{
"component": "eks/karpenter-provisioner",
"component_type": "terraform",
"component_path": "components/terraform/eks/karpenter-provisioner",
"stack": "core-ue2-auto",
"stack_slug": "core-ue2-auto-eks-karpenter-provisioner",
"spacelift_stack": "core-ue2-auto-eks-karpenter-provisioner",
"affected": "stack.vars"
},
{
"component": "ecr",
"component_type": "terraform",
"component_path": "components/terraform/ecr",
"stack": "core-ue2-auto",
"stack_slug": "core-ue2-auto-ecr",
"spacelift_stack": "core-ue2-auto-ecr",
"affected": "stack.vars"
},
{
"component": "eks/actions-runner-controller/public",
"component_type": "terraform",
"component_path": "components/terraform/eks/actions-runner-controller",
"stack": "core-ue2-auto",
"stack_slug": "core-ue2-auto-eks-actions-runner-controller-public",
"spacelift_stack": "core-ue2-auto-eks-actions-runner-controller-public",
"affected": "component"
},
{
"component": "acm",
"component_type": "terraform",
"component_path": "components/terraform/acm",
"stack": "core-ue2-auto",
"stack_slug": "core-ue2-auto-acm",
"spacelift_stack": "core-ue2-auto-acm",
"affected": "component"
},
{
"component": "eks/actions-runner-controller",
"component_type": "terraform",
"component_path": "components/terraform/eks/actions-runner-controller",
"stack": "core-ue2-auto",
"stack_slug": "core-ue2-auto-eks-actions-runner-controller",
"spacelift_stack": "core-ue2-auto-eks-actions-runner-controller",
"affected": "component"
},
{
"component": "datadog-integration",
"component_type": "terraform",
"component_path": "components/terraform/datadog-integration",
"stack": "plat-gbl-sandbox",
"stack_slug": "plat-gbl-sandbox-datadog-integration",
"spacelift_stack": "plat-gbl-sandbox-datadog-integration",
"affected": "component"
},
{
"component": "datadog-integration",
"component_type": "terraform",
"component_path": "components/terraform/datadog-integration",
"stack": "core-gbl-public",
"stack_slug": "core-gbl-public-datadog-integration",
"spacelift_stack": "core-gbl-public-datadog-integration",
"affected": "component"
},
{
"component": "acm",
"component_type": "terraform",
"component_path": "components/terraform/acm",
"stack": "plat-ue2-prod",
"stack_slug": "plat-ue2-prod-acm",
"spacelift_stack": "plat-ue2-prod-acm",
"affected": "component"
},
{
"component": "acm/hotfix",
"component_type": "terraform",
"component_path": "components/terraform/acm",
"stack": "plat-ue2-prod",
"stack_slug": "plat-ue2-prod-acm-hotfix",
"spacelift_stack": "plat-ue2-prod-acm-hotfix",
"affected": "component"
},
{
"component": "acm/staging",
"component_type": "terraform",
"component_path": "components/terraform/acm",
"stack": "plat-ue2-prod",
"stack_slug": "plat-ue2-prod-acm-staging",
"spacelift_stack": "plat-ue2-prod-acm-staging",
"affected": "component"
},
{
"component": "eks/karpenter-provisioner",
"component_type": "terraform",
"component_path": "components/terraform/eks/karpenter-provisioner",
"stack": "plat-ue2-prod",
"stack_slug": "plat-ue2-prod-eks-karpenter-provisioner",
"spacelift_stack": "plat-ue2-prod-eks-karpenter-provisioner",
"affected": "stack.vars"
},
{
"component": "eks/cluster",
"component_type": "terraform",
"component_path": "components/terraform/eks/cluster",
"stack": "plat-ue2-prod",
"stack_slug": "plat-ue2-prod-eks-cluster",
"spacelift_stack": "plat-ue2-prod-eks-cluster",
"affected": "component"
},
{
"component": "acm",
"component_type": "terraform",
"component_path": "components/terraform/acm",
"stack": "plat-ue2-staging",
"stack_slug": "plat-ue2-staging-acm",
"spacelift_stack": "plat-ue2-staging-acm",
"affected": "component"
},
{
"component": "datadog-integration",
"component_type": "terraform",
"component_path": "components/terraform/datadog-integration",
"stack": "plat-gbl-dev",
"stack_slug": "plat-gbl-dev-datadog-integration",
"spacelift_stack": "plat-gbl-dev-datadog-integration",
"affected": "component"
},
{
"component": "account",
"component_type": "terraform",
"component_path": "components/terraform/account",
"stack": "core-gbl-root",
"stack_slug": "core-gbl-root-account",
"affected": "stack.vars"
},
{
"component": "datadog-integration",
"component_type": "terraform",
"component_path": "components/terraform/datadog-integration",
"stack": "core-gbl-marketplace",
"stack_slug": "core-gbl-marketplace-datadog-integration",
"spacelift_stack": "core-gbl-marketplace-datadog-integration",
"affected": "component"
},
{
"component": "datadog-integration",
"component_type": "terraform",
"component_path": "components/terraform/datadog-integration",
"stack": "core-gbl-artifacts",
"stack_slug": "core-gbl-artifacts-datadog-integration",
"spacelift_stack": "core-gbl-artifacts-datadog-integration",
"affected": "component"
},
{
"component": "acm/qa1",
"component_type": "terraform",
"component_path": "components/terraform/acm",
"stack": "plat-ue2-dev",
"stack_slug": "plat-ue2-dev-acm-qa1",
"spacelift_stack": "plat-ue2-dev-acm-qa1",
"affected": "component"
},
{
"component": "eks/cluster",
"component_type": "terraform",
"component_path": "components/terraform/eks/cluster",
"stack": "plat-ue2-dev",
"stack_slug": "plat-ue2-dev-eks-cluster",
"spacelift_stack": "plat-ue2-dev-eks-cluster",
"affected": "component"
},
{
"component": "acm/qa3",
"component_type": "terraform",
"component_path": "components/terraform/acm",
"stack": "plat-ue2-dev",
"stack_slug": "plat-ue2-dev-acm-qa3",
"spacelift_stack": "plat-ue2-dev-acm-qa3",
"affected": "component"
},
{
"component": "acm/qa2",
"component_type": "terraform",
"component_path": "components/terraform/acm",
"stack": "plat-ue2-dev",
"stack_slug": "plat-ue2-dev-acm-qa2",
"spacelift_stack": "plat-ue2-dev-acm-qa2",
"affected": "component"
},
{
"component": "acm/qa4",
"component_type": "terraform",
"component_path": "components/terraform/acm",
"stack": "plat-ue2-dev",
"stack_slug": "plat-ue2-dev-acm-qa4",
"spacelift_stack": "plat-ue2-dev-acm-qa4",
"affected": "component"
},
{
"component": "acm",
"component_type": "terraform",
"component_path": "components/terraform/acm",
"stack": "plat-ue2-dev",
"stack_slug": "plat-ue2-dev-acm",
"spacelift_stack": "plat-ue2-dev-acm",
"affected": "component"
},
{
"component": "acm/dev",
"component_type": "terraform",
"component_path": "components/terraform/acm",
"stack": "plat-ue2-dev",
"stack_slug": "plat-ue2-dev-acm-dev",
"spacelift_stack": "plat-ue2-dev-acm-dev",
"affected": "component"
},
{
"component": "acm/preview",
"component_type": "terraform",
Expand Down

0 comments on commit 246f39a

Please sign in to comment.