Skip to content

In depth Statistical analysis of impact of transparent data #11

In depth Statistical analysis of impact of transparent data

In depth Statistical analysis of impact of transparent data #11

Workflow file for this run

name: Rust CI
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
components: rustfmt, clippy
- name: Cache cargo registry
uses: actions/cache@v3
with:
path: ~/.cargo/registry
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
- name: Cache cargo index
uses: actions/cache@v3
with:
path: ~/.cargo/git
key: ${{ runner.os }}-cargo-git-${{ hashFiles('**/Cargo.lock') }}
- name: Cache target directory
uses: actions/cache@v3
with:
path: analyzer/target
key: ${{ runner.os }}-target-${{ hashFiles('**/Cargo.lock') }}
- name: Check formatting
working-directory: ./analyzer
run: cargo fmt -- --check
- name: Run clippy
working-directory: ./analyzer
run: cargo clippy -- -D warnings
- name: Build
working-directory: ./analyzer
run: cargo build --release --verbose
- name: Run tests
working-directory: ./analyzer
run: cargo test --verbose