File tree 1 file changed +49
-0
lines changed
1 file changed +49
-0
lines changed Original file line number Diff line number Diff line change @@ -131,3 +131,52 @@ jobs:
131
131
- name : Check benchmarks
132
132
run : sh -x -c "ci/check-profiling.sh"
133
133
134
+ database-check-postgres :
135
+ name : Database Check (postgres)
136
+ runs-on : ubuntu-latest
137
+ services :
138
+ postgres :
139
+ image : postgres
140
+ env :
141
+ POSTGRES_PASSWORD : postgres
142
+ options : >-
143
+ --health-cmd pg_isready
144
+ --health-interval 10s
145
+ --health-timeout 5s
146
+ --health-retries 5
147
+ ports :
148
+ - 5432:5432
149
+
150
+ steps :
151
+ - name : Check out repository code
152
+ uses : actions/checkout@v2
153
+
154
+ - name : Install stable
155
+ uses : actions-rs/toolchain@v1
156
+ with :
157
+ toolchain : stable
158
+
159
+ - name : Connect to PostgreSQL
160
+ run : |
161
+ cargo build --bin site
162
+ timeout 5s ./target/debug/site 'postgresql://postgres:postgres@localhost:5432/postgres' 2>&1 | tee -a log || true
163
+ grep -Fxq "Loading complete but no data identified; exiting." log
164
+
165
+ database-check-sqlite :
166
+ name : Database Check (sqlite)
167
+ runs-on : ubuntu-latest
168
+
169
+ steps :
170
+ - name : Check out repository code
171
+ uses : actions/checkout@v2
172
+
173
+ - name : Install stable
174
+ uses : actions-rs/toolchain@v1
175
+ with :
176
+ toolchain : stable
177
+
178
+ - name : Connect to SQLite
179
+ run : |
180
+ cargo build --bin site
181
+ timeout 5s ./target/debug/site 2>&1 | tee -a log || true
182
+ grep -Fxq "Loading complete but no data identified; exiting." log
You can’t perform that action at this time.
0 commit comments