ci(test): only run fn/build tests after unit

This commit is contained in:
əlemi 2024-10-30 13:31:42 +01:00
parent 60b4c3dee9
commit e0c913b46d
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -12,7 +12,26 @@ permissions:
contents: read contents: read
jobs: 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 }} runs-on: ${{ matrix.runner }}
strategy: strategy:
fail-fast: false fail-fast: false
@ -40,25 +59,8 @@ jobs:
toolchain: ${{ matrix.toolchain }} toolchain: ${{ matrix.toolchain }}
- run: cargo build --release --verbose --features=${{ matrix.features }} - 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: test-functional:
needs: [test-unit]
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: arduino/setup-protoc@v3 - uses: arduino/setup-protoc@v3