ci(build): split tests from matrix builds to avoid repetition
This commit is contained in:
@@ -35,6 +35,23 @@ steps:
|
|||||||
- cargo install cargo-audit --locked
|
- cargo install cargo-audit --locked
|
||||||
- cargo audit
|
- cargo audit
|
||||||
|
|
||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
name: release-tests
|
||||||
|
|
||||||
|
when:
|
||||||
|
event: tag
|
||||||
|
tag: v*
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: workspace-tests
|
||||||
|
image: rust:1.83
|
||||||
|
commands:
|
||||||
|
- rustup component add llvm-tools-preview
|
||||||
|
- cargo install cargo-llvm-cov --locked
|
||||||
|
- cargo llvm-cov --workspace --all-features --summary-only
|
||||||
|
- cargo llvm-cov --workspace --all-features --lcov --output-path coverage.lcov --no-run
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
name: release
|
name: release
|
||||||
@@ -46,6 +63,9 @@ when:
|
|||||||
variables:
|
variables:
|
||||||
- &rust_image 'rust:1.83'
|
- &rust_image 'rust:1.83'
|
||||||
|
|
||||||
|
depends_on:
|
||||||
|
- release-tests
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
# Linux
|
# Linux
|
||||||
@@ -80,14 +100,6 @@ matrix:
|
|||||||
EXT: ".exe"
|
EXT: ".exe"
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: tests
|
|
||||||
image: *rust_image
|
|
||||||
commands:
|
|
||||||
- rustup component add llvm-tools-preview
|
|
||||||
- cargo install cargo-llvm-cov --locked
|
|
||||||
- cargo llvm-cov --workspace --all-features --summary-only
|
|
||||||
- cargo llvm-cov --workspace --all-features --lcov --output-path coverage.lcov --no-run
|
|
||||||
|
|
||||||
- name: build
|
- name: build
|
||||||
image: *rust_image
|
image: *rust_image
|
||||||
commands:
|
commands:
|
||||||
|
|||||||
Reference in New Issue
Block a user