fix(komandi): add default usage function #1385
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: [push, pull_request] | |
name: Rust docs and tests+coverage | |
jobs: | |
docs: | |
name: Rust documentation | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install stable toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
{ | |
profile: minimal, | |
toolchain: 1.49.0, | |
target: wasm32-unknown-unknown, | |
override: true, | |
} | |
- name: Checkout sources | |
uses: actions/checkout@v2 | |
with: { submodules: true } | |
- name: Prepare workspace | |
run: cp Workspace.toml Cargo.toml | |
- uses: Swatinem/rust-cache@v1 | |
- name: Generate documentation | |
run: cargo doc | |
coverage: | |
name: Run unit tests and publish coverage report | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install toolchain that works with Tarpaulin | |
uses: actions-rs/toolchain@v1 | |
with: | |
{ | |
profile: minimal, | |
toolchain: stable, | |
target: wasm32-unknown-unknown, | |
override: true, | |
} | |
- uses: Swatinem/rust-cache@v1 | |
- name: Checkout sources | |
uses: actions/checkout@v2 | |
with: { submodules: true } | |
- name: Prepare workspace | |
run: cp Workspace.toml Cargo.toml | |
- name: Run cargo-tarpaulin | |
uses: actions-rs/[email protected] | |
with: | |
version: '0.18.3' | |
args: '--workspace --coveralls ${{secrets.COVERALLS_REPO_TOKEN}} --exclude-files platforms' |