@@ -35,26 +35,26 @@ runs:
35
35
- name : Clean target
36
36
shell : pwsh
37
37
run : |
38
- if(Test-Path -Path "partial_parse.msgpack") {
39
- Remove-Item -Path "partial_parse.msgpack" -Force
38
+ if(Test-Path -Path ".\target\ partial_parse.msgpack") {
39
+ Remove-Item -Path ".\target\ partial_parse.msgpack" -Force
40
40
}
41
- if(Test-Path -Path "graph.gpickle") {
42
- Remove-Item -Path "graph.gpickle" -Force
41
+ if(Test-Path -Path ".\target\ graph.gpickle") {
42
+ Remove-Item -Path ".\target\ graph.gpickle" -Force
43
43
}
44
- working-directory : ${{ inputs.working-directory }}/target
44
+ working-directory : ${{ inputs.working-directory }}
45
45
46
46
- name : Run DBT without Unit-tets
47
47
if : inputs.target != 'unit-test'
48
48
shell : pwsh
49
49
run : |
50
- dbt compile --profiles-dir=${{ inputs.profiles-directory }} --target=${{ inputs.target }} --exclude tag:unit_test
51
- dbt seed --profiles-dir=${{ inputs.profiles-directory }} --target=${{ inputs.target }} --exclude path:seeds/unit_tests
50
+ dbt compile --profiles-dir=${{ inputs.profiles-directory }} --target=${{ inputs.target }} --exclude tag:unit_test
51
+ dbt seed --profiles-dir=${{ inputs.profiles-directory }} --target=${{ inputs.target }} --exclude path:seeds/unit_tests
52
52
if(Test-Path -Path ".\manifest.json" -PathType Leaf) {
53
- echo " ==> Previous Manifest file found, running dbt run for release"
53
+ echo " ==> Previous Manifest file found, running dbt run for release"
54
54
dbt run -s state:modified --defer --state . --profiles-dir=${{ inputs.profiles-directory }} --target=${{ inputs.target }} --exclude tag:unit_test
55
55
} else {
56
- echo " ==> No Previous Manifest file found, running dbt run fo release"
57
- dbt run --profiles-dir=${{ inputs.profiles-directory }} --target=${{ inputs.target }} --exclude tag:unit_test
56
+ echo " ==> No Previous Manifest file found, running dbt run fo release"
57
+ dbt run --profiles-dir=${{ inputs.profiles-directory }} --target=${{ inputs.target }} --exclude tag:unit_test
58
58
}
59
59
working-directory : ${{ inputs.working-directory }}
60
60
env :
@@ -69,13 +69,13 @@ runs:
69
69
if : inputs.target == 'unit-test'
70
70
shell : pwsh
71
71
run : |
72
- dbt compile --profiles-dir=${{ inputs.profiles-directory }} --target=${{ inputs.target }} --exclude tag:unit_test
72
+ dbt compile --profiles-dir=${{ inputs.profiles-directory }} --target=${{ inputs.target }} --exclude tag:unit_test
73
73
dbt seed --profiles-dir=${{ inputs.profiles-directory }} --target=${{ inputs.target }}
74
74
if(Test-Path -Path ".\manifest.json" -PathType Leaf) {
75
- echo " ==> Previous Manifest file found, running dbt run for unit tests"
75
+ echo " ==> Previous Manifest file found, running dbt run for unit tests"
76
76
dbt run -s state:modified --defer --state . --profiles-dir=${{ inputs.profiles-directory }} --target=${{ inputs.target }}
77
77
} else {
78
- echo " ==> No Previous Manifest file found, running dbt run for unit tests"
78
+ echo " ==> No Previous Manifest file found, running dbt run for unit tests"
79
79
dbt run --profiles-dir=${{ inputs.profiles-directory }} --target=${{ inputs.target }}
80
80
}
81
81
0 commit comments