Skip to content

Commit 41ba214

Browse files
author
Thomas Forbes
committed
Try this
1 parent 8143071 commit 41ba214

File tree

3 files changed

+42
-0
lines changed

3 files changed

+42
-0
lines changed

.github/workflows/test.yaml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Integration test
2+
on: [push]
3+
4+
jobs:
5+
integration-test:
6+
name: cargo build
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v4
10+
- uses: dtolnay/rust-toolchain@stable
11+
- uses: Swatinem/rust-cache@v2
12+
with:
13+
key: "test"
14+
15+
- uses: hoverkraft-tech/[email protected]
16+
17+
- name: Seed ES
18+
run: cargo run -p seed-es-data http://localhost:9201 test-index
19+
20+
- name: Seed OS
21+
run: cargo run -p seed-es-data http://localhost:9202 test-index
22+
23+
- name: Dump ES
24+
run: |
25+
cargo run http://localhost:9201 --index=test-index --batches-per-file=5 --batch-size=5000 s3://es-dump/es/ --env-file=test.env --concurrency=10
26+
27+
- name: Dump OS
28+
run: |
29+
cargo run http://localhost:9202 --index=test-index --batches-per-file=5 --batch-size=5000 s3://es-dump/es/ --env-file=test.env --concurrency=10
30+
31+
# - run: cargo build --profile=release-lto
32+
# - name: Upload build artifacts
33+
# uses: actions/upload-artifact@v4
34+
# with:
35+
# name: ${{ matrix.platform }}
36+
# path: target/release-lto/esdump-rs*
37+
# retention-days: 1

Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ log = "0.4.21"
3535
byte-unit = { version = "5.1.4", features = ["serde"] }
3636
clap-num = "1.1.1"
3737

38+
[profile.test]
39+
opt-level = 1
40+
3841
[profile.release-lto]
3942
inherits = "release"
4043
lto = true

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
FROM rust:1-buster AS builder
22

3+
RUN apt-get update && apt-get install cmake -y
4+
35
WORKDIR /usr/src/
46

57
COPY . .

0 commit comments

Comments
 (0)