Skip to content

Commit

Permalink
add process-compose for sqlite, fix migration, update query-service
Browse files Browse the repository at this point in the history
  • Loading branch information
imabdulbasit committed Nov 17, 2024
1 parent 78b5abd commit 0d52d7f
Show file tree
Hide file tree
Showing 13 changed files with 704 additions and 70 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,8 @@ jobs:
- name: Format Check
run: cargo fmt -- --check

- name: Check
- name: Check (embedded-db)
run: cargo clippy --workspace --all-features --all-targets -- -D warnings

- name: Check (postgres)
run: cargo clippy --workspace --features testing --all-targets -- -D warnings
40 changes: 39 additions & 1 deletion .github/workflows/slowtest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ env:
RUST_LOG: info,libp2p=off,node=error

jobs:
slow-tests:
slow-tests-sqlite:
runs-on: ubuntu-latest
steps:
- name: Fix submodule permissions check
Expand Down Expand Up @@ -61,3 +61,41 @@ jobs:
NEXTEST_PROFILE: slow
run: cargo nextest run --locked --release --workspace --all-features --verbose --no-fail-fast --nocapture
timeout-minutes: 40
slow-tests-postgres:
runs-on: ubuntu-latest
steps:
- name: Fix submodule permissions check
run: |
git config --global --add safe.directory '*'
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly

- uses: taiki-e/install-action@nextest

- name: Checkout Repository
uses: actions/checkout@v4
with:
submodules: recursive

- name: Configure Environment
run: PATH="$PWD/target/release:$PATH"

- name: Enable Rust Caching
uses: Swatinem/rust-cache@v2
with:
cache-all-crates: true

- name: Build
run: |
cargo build --locked --bin diff-test --release
cargo nextest run --locked --release --workspace --features testing --no-run
timeout-minutes: 90

- name: Slow Test
env:
NEXTEST_PROFILE: slow
run: cargo nextest run --locked --release --workspace --features testing --verbose --no-fail-fast --nocapture
timeout-minutes: 40
41 changes: 28 additions & 13 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ demo-native:
cargo build --profile test
scripts/demo-native

demo-native-sqlite:
cargo build --profile test --features embedded-db
scripts/demo-native -f process-compose-sqlite.yaml

demo-native-mp:
cargo build --release
scripts/demo-native -f process-compose.yaml -f process-compose-mp.yml
Expand Down
Loading

0 comments on commit 0d52d7f

Please sign in to comment.