Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add integration test #81

Open
wants to merge 15 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/local_openssl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ jobs:
with:
toolchain: ${{ matrix.toolchain }}
- name: Test against OpenSSL locally
run: cargo test
run: cargo test --all
33 changes: 26 additions & 7 deletions .github/workflows/rustls-rustcrypto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,26 @@ jobs:
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.toolchain }}
- run: cargo test --features tls12
- name: Test no_std with alloc
run: cargo test --no-default-features --features tls12,alloc

- uses: taiki-e/install-action@nextest
- name: Test normal
run: cargo nextest run --all
- name: Test no_std
run: cargo nextest run --all --no-default-features --features alloc
- name: Test no_std with TLS 1.2
run: cargo nextest run --all --no-default-features --features alloc,tls12
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: RustCrypto/actions/cargo-cache@master
- uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
components: llvm-tools-preview
- uses: taiki-e/install-action@cargo-llvm-cov
- uses: taiki-e/install-action@nextest
- name: Collect coverage data
run: cargo llvm-cov nextest --all
cross:
strategy:
matrix:
Expand All @@ -93,10 +109,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: ${{ matrix.deps }}
- name: Install cross-compilation tools
uses: taiki-e/setup-cross-toolchain-action@v1
with:
target: ${{ matrix.target }}
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
targets: ${{ matrix.target }}
- uses: RustCrypto/actions/cross-install@master
- run: cross test --release --target ${{ matrix.target }} --all-features
- uses: taiki-e/install-action@nextest
- run: cargo nextest run --all --release --target ${{ matrix.target }} --all-features
Loading
Loading