Skip to content

Use another tarpaulin version. #59

Use another tarpaulin version.

Use another tarpaulin version. #59

Workflow file for this run

name: Rust
on:
push:
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
#container:
# image: centos8
steps:
- uses: dtolnay/rust-toolchain@1.69.0
- uses: actions/checkout@v3
- name: Preparing
run: sudo apt update && sudo apt install -y libxen-dev protobuf-compiler
- name: Build
run: cargo build --verbose
- name: Code coverage
uses: actions-rs/tarpaulin@v0.1.0
with:
version: "0.22.0"
args: '-- -p xcp-metrics-common xcp-metrics'
- name: Upload to codecov.io
uses: codecov/codecov-action@v1.0.2
with:
token: ${{secrets.CODECOV_TOKEN}}
- name: Archive code coverage results
uses: actions/upload-artifact@v1
with:
name: code-coverage-report
path: cobertura.xml
- name: Run tests
run: cargo test --verbose