Skip to content

Commit

Permalink
chore: Fix cost validate release, exclude seeds from zip (#431)
Browse files Browse the repository at this point in the history
  • Loading branch information
erezrokah authored Dec 13, 2023
1 parent 0da0f42 commit 17f53d8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/validate_transformation_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ jobs:
run: |
mkdir -p temp/build
unzip -o ${{ needs.prepare.outputs.zipPath }} -d temp/build
cp -r ${{ needs.prepare.outputs.transformation_dir }}/seeds/ temp/build
- name: Run Unpacked DBT Postgres
if: needs.prepare.outputs.postgres == 'true'
working-directory: ./temp/build
Expand Down
3 changes: 3 additions & 0 deletions scripts/dbt-pack/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ const addDependencies = (node, allNodes, allMacros, filesToPack) => {
// Skip dbt internal macros
return;
}
if (node.resource_type !== "model" && node.resource_type !== "macro") {
return;
}
filesToPack.add(node.original_file_path);
const dependsOnNodes = node.depends_on?.nodes ?? [];
for (const dependency of dependsOnNodes) {
Expand Down
2 changes: 1 addition & 1 deletion transformations/aws/cost/dbt_project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ profile: 'aws_cost'
# These configurations specify where dbt should look for different types of files.
# The `model-paths` config, for example, states that models in this project can be
# found in the "models/" directory. You probably won't need to change these!
model-paths: ["models", "../models"]
model-paths: ["models"]
analysis-paths: ["analyses"]
test-paths: ["tests"]
seed-paths: ["seeds"]
Expand Down

0 comments on commit 17f53d8

Please sign in to comment.