From e0c913b46ddd903015348002e627ece49cb128ca Mon Sep 17 00:00:00 2001 From: alemi Date: Wed, 30 Oct 2024 13:31:42 +0100 Subject: [PATCH] ci(test): only run fn/build tests after unit --- .github/workflows/test.yml | 40 ++++++++++++++++++++------------------ 1 file changed, 21 insertions(+), 19 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 227c11a..cd2fba8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,7 +12,26 @@ permissions: contents: read jobs: - build: + test-unit: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + toolchain: + - stable + - beta + steps: + - uses: arduino/setup-protoc@v3 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@master + with: + toolchain: ${{ matrix.toolchain }} + - run: cargo test --verbose + + test-build: + needs: [test-unit] runs-on: ${{ matrix.runner }} strategy: fail-fast: false @@ -40,25 +59,8 @@ jobs: toolchain: ${{ matrix.toolchain }} - run: cargo build --release --verbose --features=${{ matrix.features }} - test-unit: - runs-on: ubuntu-latest - strategy: - fail-fast: false - matrix: - toolchain: - - stable - - beta - steps: - - uses: arduino/setup-protoc@v3 - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - - uses: actions/checkout@v4 - - uses: dtolnay/rust-toolchain@master - with: - toolchain: ${{ matrix.toolchain }} - - run: cargo test --verbose - test-functional: + needs: [test-unit] runs-on: ubuntu-latest steps: - uses: arduino/setup-protoc@v3