diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 197995b..e281a02 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,28 +8,8 @@ jobs: build: name: build-and-test (${{ matrix.name }}) runs-on: ubuntu-latest - defaults: - run: - working-directory: crates/hyper-custom-cert strategy: fail-fast: false - matrix: - include: - - name: default (native-tls) - features: "" - no-default-features: false - - name: no-default-features (no TLS) - features: "" - no-default-features: true - - name: rustls - features: "rustls" - no-default-features: true - - name: insecure-dangerous (native-tls) - features: "insecure-dangerous" - no-default-features: false - - name: rustls + insecure-dangerous - features: "rustls,insecure-dangerous" - no-default-features: true steps: - name: Checkout uses: actions/checkout@v4 @@ -55,21 +35,11 @@ jobs: - name: Clippy shell: bash - run: | - FLAGS="" - if [ "${{ matrix.no-default-features }}" = "true" ]; then FLAGS="$FLAGS --no-default-features"; fi - if [ -n "${{ matrix.features }}" ]; then FLAGS="$FLAGS --features ${{ matrix.features }}"; fi - echo "Running: cargo clippy --all-targets $FLAGS -- -D warnings" - cargo clippy --all-targets $FLAGS -- -D warnings + run: cargo clippy --all-targets - name: Tests shell: bash - run: | - FLAGS="" - if [ "${{ matrix.no-default-features }}" = "true" ]; then FLAGS="$FLAGS --no-default-features"; fi - if [ -n "${{ matrix.features }}" ]; then FLAGS="$FLAGS --features ${{ matrix.features }}"; fi - echo "Running: cargo test $FLAGS -- --nocapture" - cargo test $FLAGS -- --nocapture + run: cargo test --all-features - name: Build Docs shell: bash diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6f8b36b..6485820 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -87,23 +87,6 @@ jobs: working-directory: crates/hyper-custom-cert strategy: fail-fast: false - matrix: - include: - - name: default (native-tls) - features: "" - no-default-features: false - - name: no-default-features (no TLS) - features: "" - no-default-features: true - - name: rustls - features: "rustls" - no-default-features: true - - name: insecure-dangerous (native-tls) - features: "insecure-dangerous" - no-default-features: false - - name: rustls + insecure-dangerous - features: "rustls,insecure-dangerous" - no-default-features: true steps: - name: Checkout uses: actions/checkout@v4 @@ -129,22 +112,11 @@ jobs: - name: Clippy shell: bash - run: | - FLAGS="" - if [ "${{ matrix.no-default-features }}" = "true" ]; then FLAGS="$FLAGS --no-default-features"; fi - if [ -n "${{ matrix.features }}" ]; then FLAGS="$FLAGS --features ${{ matrix.features }}"; fi - echo "Running: cargo clippy --all-targets $FLAGS -- -D warnings" - cargo clippy --all-targets $FLAGS -- -D warnings + run: cargo clippy --all-targets - name: Tests shell: bash - run: | - FLAGS="" - if [ "${{ matrix.no-default-features }}" = "true" ]; then FLAGS="$FLAGS --no-default-features"; fi - if [ -n "${{ matrix.features }}" ]; then FLAGS="$FLAGS --features ${{ matrix.features }}"; fi - echo "Running: cargo test $FLAGS -- --nocapture" - cargo test $FLAGS -- --nocapture - + run: cargo test --all-features publish: name: Publish to crates.io