mirror of
https://github.com/hexedtech/codemp.git
synced 2024-12-25 14:24:54 +01:00
ci(test): only run fn/build tests after unit
This commit is contained in:
parent
60b4c3dee9
commit
e0c913b46d
1 changed files with 21 additions and 19 deletions
40
.github/workflows/test.yml
vendored
40
.github/workflows/test.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue