Skip to content

Commit

Permalink
ci: cargo test with single thread
Browse files Browse the repository at this point in the history
  • Loading branch information
fMeow committed Jun 6, 2024
1 parent 84ef422 commit 335cf07
Show file tree
Hide file tree
Showing 8 changed files with 307 additions and 308 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: CI (Linux)

on: [push, pull_request]
on: [ push, pull_request ]

jobs:
build_and_test:
Expand All @@ -13,9 +13,9 @@ jobs:

- name: Start ArangoDB by docker-compose
run: |
docker-compose up -d
docker compose -f tests/docker-compose.yml up -d
sleep 30
docker-compose logs
docker compose logs
- name: Set up ArangoDB for test
run: bash tests/init_db.sh
Expand All @@ -34,7 +34,7 @@ jobs:
env:
RUST_LOG: arangors=trace
timeout-minutes: 40
run: cargo test --no-fail-fast --no-default-features --features "rocksdb cluster enterprise blocking" --lib
run: cargo test --no-fail-fast --no-default-features --features "rocksdb cluster enterprise blocking" --lib -- --test-threads=1

- name: check build (reqwest_blocking)
env:
Expand Down Expand Up @@ -67,7 +67,7 @@ jobs:
env:
RUST_LOG: arangors=trace
timeout-minutes: 40
run: cargo test --no-fail-fast --no-default-features --features "rocksdb cluster enterprise" --lib
run: cargo test --no-fail-fast --no-default-features --features "rocksdb cluster enterprise" --lib -- --test-threads=1

- name: check build (reqwest_async)
env:
Expand All @@ -78,7 +78,7 @@ jobs:
env:
RUST_LOG: arangors=trace
timeout-minutes: 40
run: cargo test --no-fail-fast --no-default-features --features "rocksdb cluster enterprise reqwest_async" --all
run: cargo test --no-fail-fast --no-default-features --features "rocksdb cluster enterprise reqwest_async" --all -- --test-threads=1

- name: check build (surf_async)
env:
Expand All @@ -89,7 +89,7 @@ jobs:
env:
RUST_LOG: arangors=trace
timeout-minutes: 40
run: cargo test --no-fail-fast --no-default-features --features "rocksdb cluster enterprise surf_async" --all
run: cargo test --no-fail-fast --no-default-features --features "rocksdb cluster enterprise surf_async" --all -- --test-threads=1

mmfiles:

Expand Down Expand Up @@ -117,7 +117,7 @@ jobs:
env:
RUST_LOG: arangors=trace
timeout-minutes: 40
run: cargo test --all --no-fail-fast --no-default-features --features "mmfiles cluster enterprise reqwest_blocking"
run: cargo test --all --no-fail-fast --no-default-features --features "mmfiles cluster enterprise reqwest_blocking" -- --test-threads=1

doc:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion .rustfmt.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ format_code_in_doc_comments = true
normalize_doc_attributes = true
wrap_comments = true
format_strings = true
imports_granularity="Crate"
imports_granularity = "Crate"
Loading

0 comments on commit 335cf07

Please sign in to comment.