Skip to content

Commit c4bd5cd

Browse files
fixed up test of target
1 parent 156bd0c commit c4bd5cd

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

tasks/dbt-apply/action.yml

+13-13
Original file line numberDiff line numberDiff line change
@@ -35,26 +35,26 @@ runs:
3535
- name: Clean target
3636
shell: pwsh
3737
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
4040
}
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
4343
}
44-
working-directory: ${{ inputs.working-directory }}/target
44+
working-directory: ${{ inputs.working-directory }}
4545

4646
- name: Run DBT without Unit-tets
4747
if: inputs.target != 'unit-test'
4848
shell: pwsh
4949
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
5252
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"
5454
dbt run -s state:modified --defer --state . --profiles-dir=${{ inputs.profiles-directory }} --target=${{ inputs.target }} --exclude tag:unit_test
5555
} 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
5858
}
5959
working-directory: ${{ inputs.working-directory }}
6060
env:
@@ -69,13 +69,13 @@ runs:
6969
if: inputs.target == 'unit-test'
7070
shell: pwsh
7171
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
7373
dbt seed --profiles-dir=${{ inputs.profiles-directory }} --target=${{ inputs.target }}
7474
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"
7676
dbt run -s state:modified --defer --state . --profiles-dir=${{ inputs.profiles-directory }} --target=${{ inputs.target }}
7777
} 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"
7979
dbt run --profiles-dir=${{ inputs.profiles-directory }} --target=${{ inputs.target }}
8080
}
8181

0 commit comments

Comments
 (0)