diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 195db426..11c06aae 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -36,10 +36,14 @@ jobs: with: packages: libgnutls28-dev libgnutls30 version: 1.0 - - if: matrix.crate == 'libcoap-rs' && matrix.dtls_backend != 'gnutls' - run: cargo test -p ${{ matrix.crate }} --no-default-features --features dtls,tcp,vendored --features dtls_${{ matrix.dtls_backend }} --features dtls_${{ matrix.dtls_backend }}_vendored --no-fail-fast + - if: matrix.crate == 'libcoap-rs' && matrix.dtls_backend == 'tinydtls' + run: cargo test -p ${{ matrix.crate }} --no-default-features --features tcp,vendored,dtls-psk,dtls-rpk --features dtls_${{ matrix.dtls_backend }} --features dtls_${{ matrix.dtls_backend }}_vendored --no-fail-fast + - if: matrix.crate == 'libcoap-rs' && matrix.dtls_backend == 'mbedtls' + run: cargo test -p ${{ matrix.crate }} --no-default-features --features tcp,vendored,dtls-psk,dtls-pki --features dtls_${{ matrix.dtls_backend }} --features dtls_${{ matrix.dtls_backend }}_vendored --no-fail-fast + - if: matrix.crate == 'libcoap-rs' && matrix.dtls_backend == 'openssl' + run: cargo test -p ${{ matrix.crate }} --no-default-features --features tcp,vendored,dtls-psk,dtls-pki --features dtls_${{ matrix.dtls_backend }} --features dtls_${{ matrix.dtls_backend }}_vendored --no-fail-fast - if: matrix.crate == 'libcoap-rs' && matrix.dtls_backend == 'gnutls' - run: cargo test -p ${{ matrix.crate }} --no-default-features --features dtls,tcp,vendored --features dtls_${{ matrix.dtls_backend }} --no-fail-fast + run: cargo test -p ${{ matrix.crate }} --no-default-features --features tcp,vendored,dtls-psk,dtls-pki,dtls-rpk --features dtls_${{ matrix.dtls_backend }} --no-fail-fast - if: matrix.crate == 'libcoap-sys' && matrix.dtls_backend != 'gnutls' run: cargo test -p ${{ matrix.crate }} --features dtls,dtls_backend_${{ matrix.dtls_backend }},dtls_backend_${{ matrix.dtls_backend }}_vendored --no-fail-fast - if: matrix.crate == 'libcoap-sys' && matrix.dtls_backend == 'gnutls' @@ -61,7 +65,7 @@ jobs: - uses: giraffate/clippy-action@main with: reporter: 'github-check' - clippy_flags: -p ${{ matrix.crate }} --no-deps + clippy_flags: -p ${{ matrix.crate }} --no-deps --all-features level: warning fail_on_error: true tool_name: clippy (${{ matrix.crate }}) @@ -81,7 +85,11 @@ jobs: - uses: baptiste0928/cargo-install@v3 with: crate: cargo-tarpaulin - - run: cargo tarpaulin --no-fail-fast --workspace --verbose --features dtls,tcp,vendored --exclude-files libcoap-sys/tests,libcoap/tests --timeout 120 --out Xml + - uses: awalsh128/cache-apt-pkgs-action@latest + with: + packages: libgnutls28-dev libgnutls30 + version: 1.0 + - run: cargo tarpaulin --no-fail-fast --workspace --verbose --features tcp,vendored,dtls_gnutls,dtls-psk,dtls-rpk,dtls-pki --exclude-files libcoap-sys/tests,libcoap/tests --timeout 120 --out Xml - id: cov-report name: Produce the coverage report uses: pulsastrix/coverage-action@always_generate_comment_body diff --git a/.idea/runConfigurations/Test.xml b/.idea/runConfigurations/Test.xml index dfa2f15a..4f6e6f9d 100644 --- a/.idea/runConfigurations/Test.xml +++ b/.idea/runConfigurations/Test.xml @@ -1,6 +1,6 @@ -