Skip to content

[DataBroker Rewrite] Data Broker MVP #64

[DataBroker Rewrite] Data Broker MVP

[DataBroker Rewrite] Data Broker MVP #64

Workflow file for this run

name: Rust
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: taiki-e/install-action@nextest
- uses: actions/checkout@v4
- name: Install Rust
run: rustup update stable
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo nextest run --verbose
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: taiki-e/install-action@nextest
- uses: actions/checkout@v4
- name: Install Rust
run: rustup update nightly
- name: Install cargo-llvm-cov
run: rustup component add llvm-tools-preview --toolchain nightly
- uses: taiki-e/install-action@cargo-llvm-cov
- uses: taiki-e/install-action@nextest
- name: Collect coverage data (including doctests)
run: |
cargo llvm-cov --no-report nextest --ignore-filename-regex calloop-0.10.6/*
cargo llvm-cov --no-report --doc --ignore-filename-regex calloop-0.10.6/*
cargo llvm-cov report --doctests --lcov --output-path lcov.info --ignore-filename-regex calloop-0.10.6/*
- name: Upload coverage
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: taiki-e/install-action@nextest
- uses: actions/checkout@v4
- name: Install Rust
run: rustup update stable
- name: Build docs
run: cargo doc --verbose --all-features --workspace
- name: Deploy docs
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./target/doc