Skip to content

Commit c62814a

Browse files
committed
change the docker images
1 parent 3f1a41c commit c62814a

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,16 @@ on:
99

1010
env:
1111
CARGO_TERM_COLOR: always
12+
TARPAULIN_VERSION: 0.35.1
1213

1314
jobs:
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

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
CONVERTOR_BIN = cloudmon-metrics-convertor
1111
REPORTER_BIN = cloudmon-metrics-reporter
1212

13+
# Tool versions
14+
TARPAULIN_VERSION = 0.35.1
15+
1316
# Default target
1417
all: fmt-check lint test build
1518

@@ -149,7 +152,7 @@ clean-all: clean
149152
## Install required development tools
150153
install-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)

0 commit comments

Comments
 (0)