Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add coverage report for ci #172

Closed
wants to merge 32 commits into from
Closed
Changes from 21 commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
8ab3b7b
add coverage report for ci
Raid5594 Nov 28, 2023
9dcb095
add tarapulin using github actions
Raid5594 Nov 28, 2023
893e330
quick fix
Raid5594 Nov 28, 2023
2225a72
update runner machine
Raid5594 Nov 29, 2023
5753e17
Merge branch 'dev' into feature/tarpaulin-coverage
rakanalh Nov 29, 2023
4fc9cb3
Merge branch 'dev' into feature/tarpaulin-coverage
aie0 Nov 30, 2023
2a6765f
change xlarge nodes to large
Raid5594 Dec 1, 2023
943895d
fix error in check.yaml
Raid5594 Dec 4, 2023
8b56a47
fix actions version in check.yaml
Raid5594 Dec 4, 2023
ce1b9db
add apt update
Raid5594 Dec 4, 2023
f5b34b2
install rust
Raid5594 Dec 4, 2023
acdf5c4
install rustup
Raid5594 Dec 4, 2023
04f22b7
update rustup setup
Raid5594 Dec 4, 2023
f1ca49b
update rustup setup
Raid5594 Dec 4, 2023
9b6af5c
update rustup setup
Raid5594 Dec 4, 2023
9475908
update rustup setup
Raid5594 Dec 4, 2023
4ac8b72
update rustup setup
Raid5594 Dec 4, 2023
c63bbc3
update rustup setup
Raid5594 Dec 4, 2023
1e8a940
update rustup setup
Raid5594 Dec 4, 2023
647a69a
update rustup setup
Raid5594 Dec 4, 2023
2d6fd7d
Merge branch 'dev' into feature/tarpaulin-coverage
aie0 Dec 4, 2023
46c3975
update rustup setup
Raid5594 Dec 4, 2023
e461761
Merge branch 'dev' into feature/tarpaulin-coverage
aie0 Dec 4, 2023
921bc2a
Remove is_some_and
rakanalh Dec 5, 2023
0abd5e7
Update tarpaulin version
rakanalh Dec 5, 2023
3a3e1db
Use nightly
rakanalh Dec 5, 2023
71c9c77
Restore removed annotations and use rust-toolchain config in root
rakanalh Dec 5, 2023
a6c0c88
Fix tarpaulin version
rakanalh Dec 5, 2023
329e755
install nightly
Raid5594 Dec 5, 2023
af7199e
Specific nightly build
rakanalh Dec 5, 2023
9d135b3
Test installing toolchain through an action
rakanalh Dec 5, 2023
0498532
Restore removed parts
rakanalh Dec 5, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 26 additions & 4 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,34 @@ on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

permissions:
id-token: write
contents: read

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
check:
# The type of runner that the job will run on
runs-on: ubuntu-22.04
runs-on: ["self-hosted", "cere-network-xlarge-workers"]

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
- uses: actions/checkout@v3

- name: Install linux dependencies
run: sudo apt install -y clang libssl-dev llvm libudev-dev protobuf-compiler
run: sudo apt update && sudo apt install -y cargo clang libssl-dev llvm libudev-dev protobuf-compiler

- name: Install Rust
run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
source "$HOME/.cargo/env"
rustup install 1.70.0
rustup default 1.70.0
rustup update nightly
rustup update stable --no-self-update
rustup target add wasm32-unknown-unknown
export PATH="$HOME/.cargo/bin:$PATH"

- name: Check TOML
uses: dprint/check@v2.2
Expand All @@ -42,11 +52,23 @@ jobs:
run: |
cargo clippy --no-deps --all-targets --features runtime-benchmarks --workspace -- --deny warnings

- name: Run cargo-tarpaulin
aie0 marked this conversation as resolved.
Show resolved Hide resolved
uses: actions-rs/tarpaulin@v0.1
with:
version: '0.15.0'
args: '--verbose --locked --no-fail-fast --workspace --features runtime-benchmarks --out "Xml"'

- name: Check Build
run: |
SKIP_WASM_BUILD=1 cargo check --release
SKIP_WASM_BUILD=1 cargo +1.70.0 check --release

- name: Check Build for Benchmarking
run: >
pushd node &&
cargo check --features=runtime-benchmarks --release

- name: Upload coverage report
uses: actions/upload-artifact@v3
with:
name: tarpaulin coverage
path: ./tarpaulin-report.xml
Loading