Skip to content

Commit

Permalink
Merge pull request #96 from dbt-labs/dbt-cloud-yml-dict
Browse files Browse the repository at this point in the history
Dbt cloud yml dict
  • Loading branch information
dave-connors-3 authored Oct 30, 2023
2 parents d3bc0f3 + 9d82241 commit d9365db
Show file tree
Hide file tree
Showing 8 changed files with 41 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
8 changes: 8 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"/tests/1.5/**/*.yml",
"!profiles.yml",
"!dbt_project.yml",
"!dbt_cloud.yml",
"!packages.yml",
"!selectors.yml",
"!profile_template.yml",
Expand All @@ -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"
],
Expand All @@ -23,6 +27,7 @@
"/tests/1.6/**/*.yml",
"!profiles.yml",
"!dbt_project.yml",
"!dbt_cloud.yml",
"!packages.yml",
"!selectors.yml",
"!dependencies.yml",
Expand All @@ -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"
],
Expand Down
14 changes: 14 additions & 0 deletions schemas/1.5/dbt_cloud-1.5.json
Original file line number Diff line number Diff line change
@@ -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
}
14 changes: 14 additions & 0 deletions schemas/1.6/dbt_cloud-1.6.json
Original file line number Diff line number Diff line change
@@ -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
}
1 change: 1 addition & 0 deletions tests/1.5/invalid/dbt_cloud.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dave-loves-dbt: true
1 change: 1 addition & 0 deletions tests/1.5/valid/dbt_cloud.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
project-id: '672'
1 change: 1 addition & 0 deletions tests/1.6/invalid/dbt_cloud.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dave-loves-dbt: true
1 change: 1 addition & 0 deletions tests/1.6/valid/dbt_cloud.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
project-id: '672'

0 comments on commit d9365db

Please sign in to comment.