mirror of
https://github.com/OMGeeky/yup-oauth2.git
synced 2026-01-20 17:21:03 +01:00
Use a test matrix to test feature combinations
This commit is contained in:
17
.github/workflows/test.yml
vendored
17
.github/workflows/test.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user