Skip to content

Commit

Permalink
feat: shift from cargo test to cargo nextest
Browse files Browse the repository at this point in the history
  • Loading branch information
Arya-A-Nair committed Sep 26, 2024
1 parent 4f529ae commit 8b67e06
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/test-ffi-bindings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ jobs:
make install-jar
echo "$(make echo-jar | tail -n 1 | sed -e 's/\.*export //')" >> "$GITHUB_ENV"
- name: Run cargo test on FFI bindings
- name: Run cargo nextest on FFI bindings
run: |
export CLASSPATH="${{ env.CLASSPATH }}"
cargo test --manifest-path bindings_ffi/Cargo.toml -- --test-threads=2
cargo nextest run --manifest-path bindings_ffi/Cargo.toml --test-threads 2
5 changes: 3 additions & 2 deletions .github/workflows/test-http-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,6 @@ jobs:
.
- name: Start Docker containers
run: dev/up
- name: Run cargo test on main workspace
run: cargo test --workspace --exclude xmtp_api_grpc --features http-api -- --test-threads=2
- name: Run cargo nextest on main workspace
run: cargo nextest run --workspace --exclude xmtp_api_grpc --features http-api --test-threads 2

5 changes: 3 additions & 2 deletions .github/workflows/test-workspace.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,6 @@ jobs:
.
- name: Start Docker containers
run: dev/up
- name: Run cargo test on main workspace
run: cargo test -- --test-threads=2
- name: Run cargo nextest on main workspace
run: cargo nextest run --test-threads 2

1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ COPY --chown=xmtp:xmtp rust-toolchain .
ENV RUSTUP_PERMIT_COPY_RENAME "yes"

RUN rustup update
RUN curl -LsSf https://get.nexte.st/latest/linux | tar zxf - -C ${CARGO_HOME:-~/.cargo}/bin

LABEL org.label-schema.build-date=$BUILD_DATE \
org.label-schema.name="rustdev" \
Expand Down

0 comments on commit 8b67e06

Please sign in to comment.