-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Integration test | ||
on: [push] | ||
|
||
jobs: | ||
integration-test: | ||
name: cargo build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@stable | ||
- uses: Swatinem/rust-cache@v2 | ||
with: | ||
key: "test" | ||
|
||
- uses: hoverkraft-tech/[email protected] | ||
|
||
- name: Seed ES | ||
run: cargo run -p seed-es-data http://localhost:9201 test-index | ||
|
||
- name: Seed OS | ||
run: cargo run -p seed-es-data http://localhost:9202 test-index | ||
|
||
- name: Dump ES | ||
run: | | ||
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 | ||
- name: Dump OS | ||
run: | | ||
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 | ||
# - run: cargo build --profile=release-lto | ||
# - name: Upload build artifacts | ||
# uses: actions/upload-artifact@v4 | ||
# with: | ||
# name: ${{ matrix.platform }} | ||
# path: target/release-lto/esdump-rs* | ||
# retention-days: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
FROM rust:1-buster AS builder | ||
|
||
RUN apt-get update && apt-get install cmake -y | ||
|
||
WORKDIR /usr/src/ | ||
|
||
COPY . . | ||
|