Use a test matrix to test feature combinations

This commit is contained in:
Simonas Kazlauskas
2021-06-29 13:49:18 +03:00
parent dd004fed3c
commit 469f045247
4 changed files with 18 additions and 13 deletions

View File

@@ -6,6 +6,10 @@ jobs:
build_and_test:
name: yup-oauth2
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
features: ["hyper-rustls", "hyper-tls", "hyper-rustls,hyper-tls", ""]
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
@@ -16,18 +20,7 @@ jobs:
- uses: actions-rs/cargo@v1
with:
command: test
- uses: actions-rs/cargo@v1
with:
command: test
args: --all-features
- uses: actions-rs/cargo@v1
with:
command: test
args: --no-default-features --tests --examples
- uses: actions-rs/cargo@v1
with:
command: build
args: --examples
args: --no-default-features --features=${{ matrix.features }}
doc:
name: yup-oauth2