@@ -55,34 +55,40 @@ jobs:
55
55
TEST_MODE : true
56
56
- shell : bash
57
57
run : |
58
- CPP_DB=${{ fromJson(steps.analysis.outputs.db-locations).cpp }}
58
+ CPP_DB=" ${{ fromJson(steps.analysis.outputs.db-locations).cpp }}"
59
59
if [[ ! -d $CPP_DB ]] || [[ ! $CPP_DB == ${{ runner.temp }}/customDbLocation/* ]]; then
60
- echo "Did not create a database for CPP, or created it in the wrong location."
60
+ echo "Did not create a database for CPP, or created it in the wrong location." \
61
+ "Expected location was '${ runner.temp }'/customDbLocation/* but actual was '${ CPP_DB }'"
61
62
exit 1
62
63
fi
63
- CSHARP_DB=${{ fromJson(steps.analysis.outputs.db-locations).csharp }}
64
+ CSHARP_DB=" ${{ fromJson(steps.analysis.outputs.db-locations).csharp }}"
64
65
if [[ ! -d $CSHARP_DB ]] || [[ ! $CSHARP_DB == ${{ runner.temp }}/customDbLocation/* ]]; then
65
- echo "Did not create a database for C Sharp, or created it in the wrong location."
66
+ echo "Did not create a database for C Sharp, or created it in the wrong location." \
67
+ "Expected location was '${ runner.temp }'/customDbLocation/* but actual was '${ CSHARP_DB }'"
66
68
exit 1
67
69
fi
68
- GO_DB=${{ fromJson(steps.analysis.outputs.db-locations).go }}
70
+ GO_DB=" ${{ fromJson(steps.analysis.outputs.db-locations).go }}"
69
71
if [[ ! -d $GO_DB ]] || [[ ! $GO_DB == ${{ runner.temp }}/customDbLocation/* ]]; then
70
- echo "Did not create a database for Go, or created it in the wrong location."
72
+ echo "Did not create a database for Go, or created it in the wrong location." \
73
+ "Expected location was '${ runner.temp }'/customDbLocation/* but actual was '${ GO_DB }'"
71
74
exit 1
72
75
fi
73
- JAVA_DB=${{ fromJson(steps.analysis.outputs.db-locations).java }}
76
+ JAVA_DB=" ${{ fromJson(steps.analysis.outputs.db-locations).java }}"
74
77
if [[ ! -d $JAVA_DB ]] || [[ ! $JAVA_DB == ${{ runner.temp }}/customDbLocation/* ]]; then
75
- echo "Did not create a database for Java, or created it in the wrong location."
78
+ echo "Did not create a database for Java, or created it in the wrong location." \
79
+ "Expected location was '${ runner.temp }'/customDbLocation/* but actual was '${ JAVA_DB }'"
76
80
exit 1
77
81
fi
78
- JAVASCRIPT_DB=${{ fromJson(steps.analysis.outputs.db-locations).javascript }}
82
+ JAVASCRIPT_DB=" ${{ fromJson(steps.analysis.outputs.db-locations).javascript }}"
79
83
if [[ ! -d $JAVASCRIPT_DB ]] || [[ ! $JAVASCRIPT_DB == ${{ runner.temp }}/customDbLocation/* ]]; then
80
- echo "Did not create a database for Javascript, or created it in the wrong location."
84
+ echo "Did not create a database for Javascript, or created it in the wrong location." \
85
+ "Expected location was '${ runner.temp }'/customDbLocation/* but actual was '${ JAVASCRIPT_DB }'"
81
86
exit 1
82
87
fi
83
- PYTHON_DB=${{ fromJson(steps.analysis.outputs.db-locations).python }}
88
+ PYTHON_DB=" ${{ fromJson(steps.analysis.outputs.db-locations).python }}"
84
89
if [[ ! -d $PYTHON_DB ]] || [[ ! $PYTHON_DB == ${{ runner.temp }}/customDbLocation/* ]]; then
85
- echo "Did not create a database for Python, or created it in the wrong location."
90
+ echo "Did not create a database for Python, or created it in the wrong location." \
91
+ "Expected location was '${ runner.temp }'/customDbLocation/* but actual was '${ PYTHON_DB }'"
86
92
exit 1
87
93
fi
88
94
env :
0 commit comments