File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99
1010env :
1111 CARGO_TERM_COLOR : always
12+ TARPAULIN_VERSION : 0.35.1
1213
1314jobs :
1415 test :
1516 runs-on : ubuntu-latest
17+ container :
18+ image : rust:latest
1619 steps :
1720 - uses : actions/checkout@v4
1821
19- - name : Install Rust
20- uses : dtolnay/rust-toolchain@stable
21- with :
22- components : rustfmt, clippy
2322# Temporarily disabled linting and formatting checks, to be re-enabled later.
2423# - name: Check formatting
2524# run: make fmt-check
@@ -32,15 +31,13 @@ jobs:
3231
3332 coverage :
3433 runs-on : ubuntu-latest
34+ container :
35+ image : xd009642/tarpaulin:${{ env.TARPAULIN_VERSION }}
36+ options : --security-opt seccomp=unconfined
3537 needs : test
3638 steps :
3739 - uses : actions/checkout@v4
3840
39- - name : Install Rust
40- uses : dtolnay/rust-toolchain@stable
41-
42- - name : Install cargo-tarpaulin
43- run : cargo install cargo-tarpaulin
4441
4542 - name : Run tests with coverage
4643 run : make coverage-check
Original file line number Diff line number Diff line change 1010CONVERTOR_BIN = cloudmon-metrics-convertor
1111REPORTER_BIN = cloudmon-metrics-reporter
1212
13+ # Tool versions
14+ TARPAULIN_VERSION = 0.35.1
15+
1316# Default target
1417all : fmt-check lint test build
1518
@@ -149,7 +152,7 @@ clean-all: clean
149152# # Install required development tools
150153install-tools :
151154 rustup component add rustfmt clippy
152- cargo install cargo-tarpaulin
155+ cargo install cargo-tarpaulin --version $( TARPAULIN_VERSION )
153156 cargo install mdbook mdbook-mermaid mdbook-linkcheck
154157
155158# # Run all quality checks (CI simulation)
You can’t perform that action at this time.
0 commit comments