diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 558dacd..ed983aa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,7 +20,7 @@ jobs: strategy: matrix: dbt-version: ["1.5", "1.6"] - dbt-file-name: ["dbt_project", "packages", "selectors", "dbt_yml_files", "dependencies"] + dbt-file-name: ["dbt_project", "packages", "selectors", "dbt_yml_files", "dependencies", "dbt_cloud"] exclude: - dbt-version: "1.5" dbt-file-name: "dependencies" diff --git a/.vscode/settings.json b/.vscode/settings.json index c99121e..95581f3 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -4,6 +4,7 @@ "/tests/1.5/**/*.yml", "!profiles.yml", "!dbt_project.yml", + "!dbt_cloud.yml", "!packages.yml", "!selectors.yml", "!profile_template.yml", @@ -12,6 +13,9 @@ "./schemas/1.5/dbt_project-1.5.json": [ "/tests/1.5/**/dbt_project.yml" ], + "./schemas/1.5/dbt_cloud-1.5.json": [ + "/tests/1.5/**/dbt_cloud.yml" + ], "./schemas/1.5/selectors-1.5.json": [ "/tests/1.5/**/selectors.yml" ], @@ -23,6 +27,7 @@ "/tests/1.6/**/*.yml", "!profiles.yml", "!dbt_project.yml", + "!dbt_cloud.yml", "!packages.yml", "!selectors.yml", "!dependencies.yml", @@ -32,6 +37,9 @@ "./schemas/1.6/dbt_project-1.6.json": [ "/tests/1.6/**/dbt_project.yml" ], + "./schemas/1.6/dbt_cloud-1.6.json": [ + "/tests/1.6/**/dbt_cloud.yml" + ], "./schemas/1.6/selectors-1.6.json": [ "/tests/1.6/**/selectors.yml" ], diff --git a/schemas/1.5/dbt_cloud-1.5.json b/schemas/1.5/dbt_cloud-1.5.json new file mode 100644 index 0000000..70921f0 --- /dev/null +++ b/schemas/1.5/dbt_cloud-1.5.json @@ -0,0 +1,14 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "type": "object", + "properties": { + "project-id": { + "type": "string" + }, + "defer-env-id": { + "type": "string" + } + }, + "required": ["project-id"], + "additionalProperties": false +} diff --git a/schemas/1.6/dbt_cloud-1.6.json b/schemas/1.6/dbt_cloud-1.6.json new file mode 100644 index 0000000..70921f0 --- /dev/null +++ b/schemas/1.6/dbt_cloud-1.6.json @@ -0,0 +1,14 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "type": "object", + "properties": { + "project-id": { + "type": "string" + }, + "defer-env-id": { + "type": "string" + } + }, + "required": ["project-id"], + "additionalProperties": false +} diff --git a/tests/1.5/invalid/dbt_cloud.yml b/tests/1.5/invalid/dbt_cloud.yml new file mode 100644 index 0000000..f249f27 --- /dev/null +++ b/tests/1.5/invalid/dbt_cloud.yml @@ -0,0 +1 @@ +dave-loves-dbt: true \ No newline at end of file diff --git a/tests/1.5/valid/dbt_cloud.yml b/tests/1.5/valid/dbt_cloud.yml new file mode 100644 index 0000000..0742ac6 --- /dev/null +++ b/tests/1.5/valid/dbt_cloud.yml @@ -0,0 +1 @@ +project-id: '672' \ No newline at end of file diff --git a/tests/1.6/invalid/dbt_cloud.yml b/tests/1.6/invalid/dbt_cloud.yml new file mode 100644 index 0000000..80e214d --- /dev/null +++ b/tests/1.6/invalid/dbt_cloud.yml @@ -0,0 +1 @@ +dave-loves-dbt: true diff --git a/tests/1.6/valid/dbt_cloud.yml b/tests/1.6/valid/dbt_cloud.yml new file mode 100644 index 0000000..0742ac6 --- /dev/null +++ b/tests/1.6/valid/dbt_cloud.yml @@ -0,0 +1 @@ +project-id: '672' \ No newline at end of file