File tree 3 files changed +7
-30
lines changed
3 files changed +7
-30
lines changed Original file line number Diff line number Diff line change 82
82
- run : yarn test_core
83
83
84
84
cli_tests :
85
- name : DB.io - CLI Tests
86
- needs : [build]
87
- runs-on : ubuntu-24.04
88
- steps :
89
- - run : sudo apt-get install -y libsqlite3-dev
90
- - uses : actions/checkout@v4
91
- - uses : actions/setup-python@v5
92
- with :
93
- python-version : ' 3.13'
94
- - name : Install uv
95
- uses : astral-sh/setup-uv@v4
96
- with :
97
- # Install a specific version of uv.
98
- version : " 0.5.6"
99
- - run : yarn
100
- - run : make smoke_test
101
-
102
- cli_tests_postgres :
103
85
name : DB.io - CLI Tests for Postgres
104
86
needs : [build]
105
87
runs-on : ubuntu-24.04
@@ -133,7 +115,7 @@ jobs:
133
115
version : " 0.5.6"
134
116
- run : yarn
135
117
- name : Run Smoke tests with Postgres
136
- run : make smoke_test_postgres_ci
118
+ run : make smoke_test_ci
137
119
env :
138
120
POSTGRES_URL : postgres://postgres:mysecretpassword@localhost:5432/postgres
139
121
Original file line number Diff line number Diff line change 24
24
endif
25
25
26
26
smoke_test :
27
- ./script/cli_test.sh ${EXAMPLE_PROJECT_JSON}
28
-
29
- smoke_test_postgres :
30
- ./script/cli_test.sh ${EXAMPLE_PROJECT_POSTGRES_JSON} start_docker
27
+ jq -s ' .[0] * .[1]' ${EXAMPLE_PROJECT_POSTGRES_JSON} ${PARTIAL_WITH_CHANNELS_JSON} > /tmp/project-with-channels.json
28
+ ./script/cli_test.sh /tmp/project-with-channels.json start_docker
31
29
32
- smoke_test_postgres_channels :
30
+ smoke_test_ci :
33
31
jq -s ' .[0] * .[1]' ${EXAMPLE_PROJECT_POSTGRES_JSON} ${PARTIAL_WITH_CHANNELS_JSON} > /tmp/project-with-channels.json
34
32
./script/cli_test.sh /tmp/project-with-channels.json
35
33
36
- smoke_test_postgres_ci :
37
- ./script/cli_test.sh ${EXAMPLE_PROJECT_POSTGRES_JSON}
38
-
39
34
create :
40
35
yarn run cli ${EXAMPLE_PROJECT_POSTGRES_JSON} ${EXAMPLE_TAR_OUTPUT}
41
36
echo " Project created at ${PROJECT_NAME} "
Original file line number Diff line number Diff line change @@ -75,15 +75,15 @@ curl --connect-timeout 5 \
75
75
" http://127.0.0.1:${DJANGO_PORT} " || kill ${ID}
76
76
77
77
curl " http://127.0.0.1:${DJANGO_PORT} " | grep " DjangoModel1 Listing"
78
- RESULT =$?
78
+ HTTP_RESULT =$?
79
79
80
80
echo " Test Message" | websocat ws://127.0.0.1:${DJANGO_PORT} /ws/ -1 | grep " Hello from DjangoProjectWithChannels WebSocketConsumer! Test Message"
81
- RESULT_WEBSOCKET =$?
81
+ WEBSOCKET_RESULT =$?
82
82
83
83
echo -e " View Results at \e[32m${DIR} /${PROJECT_NAME} \e[0m"
84
84
85
85
kill ${ID}
86
- if [ $RESULT -eq 0 ] && [ $RESULT_WEBSOCKET -eq 0 ]; then
86
+ if [ $HTTP_RESULT -eq 0 ] && [ $WEBSOCKET_RESULT -eq 0 ]; then
87
87
echo -e " \e[32mTest passed\e[0m"
88
88
exit 0
89
89
else
You can’t perform that action at this time.
0 commit comments