old version of 21.12 reorg #1387
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 } | |
- uses: Swatinem/rust-cache@v1 | |
- name: Generate documentation | |
run: cargo doc | |
coverage: | |
name: Unit test coverage report | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install Node and Yarn | |
uses: actions/setup-node@v2 | |
with: { node-version: "14.x" } | |
- 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: Run cargo-tarpaulin | |
uses: actions-rs/[email protected] | |
with: | |
version: '0.18.3' | |
args: '--workspace --coveralls ${{secrets.COVERALLS_REPO_TOKEN}}' |