From 3ddcd171ea66efa94821533299f48788a18fb33a Mon Sep 17 00:00:00 2001 From: Sam Scott Date: Fri, 29 Apr 2022 11:10:22 -0500 Subject: Run features in parallel in CI (#60) --- .github/workflows/ci.yml | 33 ++++++++++----------------------- 1 file changed, 10 insertions(+), 23 deletions(-) (limited to '.github') diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 960e342..5a478db 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -39,6 +39,13 @@ jobs: rust: - stable - 1.36.0 + feature: + - "" + - actix4 + - actix3 + - actix2 + - warp + - axum steps: - uses: actions/checkout@v2 - uses: actions/cache@v2 @@ -53,27 +60,7 @@ jobs: with: profile: minimal toolchain: stable - - name: Run test actix4 + - name: Run test ${{ matrix.feature }} run: | - cargo test --all-targets --features actix4 - cargo test --doc --features actix4 - - name: Run test actix3 - run: | - cargo test --all-targets --features actix3 - cargo test --doc --features actix3 - - name: Run test actix2 - run: | - cargo test --all-targets --features actix2 - cargo test --doc --features actix2 - - name: Run test warp - run: | - cargo test --all-targets --features warp - cargo test --doc --features warp - - name: Run test axum - run: | - cargo test --all-targets --features axum - cargo test --doc --features axum - - name: Run test no feature - run: | - cargo test --all-targets - cargo test --doc + cargo test --all-targets --features "${{ matrix.feature }}" + cargo test --doc --features "${{ matrix.feature }}" -- cgit v1.2.3