Skip to content

Commit 020311b

Browse files
authored
Add CI to test (#19)
* Add CI to test * Fix the failing test
1 parent 59130d0 commit 020311b

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

.github/workflows/rust.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
8+
env:
9+
CARGO_TERM_COLOR: always
10+
11+
jobs:
12+
test:
13+
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- uses: actions/checkout@v2
18+
- name: Build
19+
run: cargo build --verbose
20+
- name: Docker setup
21+
run: docker run -d -p 7700:7700 getmeili/meilisearch:latest ./meilisearch --no-analytics=true
22+
- name: Run tests
23+
run: cargo test --verbose -- --test-threads=1

src/client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ impl<'a> Client<'a> {
268268
#[serde(rename_all = "camelCase")]
269269
pub struct ClientStats {
270270
pub database_size: usize,
271-
pub last_update: String,
271+
pub last_update: Option<String>,
272272
pub indexes: HashMap<String, IndexStats>,
273273
}
274274

0 commit comments

Comments
 (0)