Skip to content

Fix anchor and subpath for relative links #51

Fix anchor and subpath for relative links

Fix anchor and subpath for relative links #51

Workflow file for this run

name: 'Rust Build'
on:
pull_request:
paths:
- 'Cargo.toml'
- 'Cargo.lock'
- 'conf/*.toml'
- 'src/**'
- 'test/*'
- '.github/workflows/build.yaml'
- '.github/codecov.yml'
push:
branches:
- develop
- prod
jobs:
library_build_and_test:
name: Library
runs-on: ubuntu-latest
env:
RUSTFLAGS: -A unused -D warnings
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Rust Toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Cargo Cache
uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-default-${{ hashFiles('**/Cargo.toml') }}
- name: Build (All Features)
run: cargo build --all-features
- name: Build (No Features)
run: cargo build --no-default-features
- name: Test
run: cargo test --all-features -- --nocapture --test-threads 1
- name: Test (exhaustive)
run: cd deepwell && cargo test --all-features -- --nocapture --ignored
if: github.ref == 'refs/head/develop' || github.ref == 'refs/head/prod'
wasm:
name: WebASM
runs-on: ubuntu-latest
env:
RUSTFLAGS: -A unused -D warnings
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Rust Toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: WASM Toolchain
uses: jetli/[email protected]
with:
version: latest
- name: Cargo Cache
uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-webasm-${{ hashFiles('**/Cargo.toml') }}
- name: Build (Default)
run: wasm-pack build --dev
- name: Build (No Features)
run: wasm-pack build --dev -- --no-default-features
coverage:
name: Coverage
runs-on: ubuntu-latest
env:
RUSTFLAGS: -A unused -D warnings
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Rust Toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Cargo Cache
uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-coverage-${{ hashFiles('**/Cargo.toml') }}
- name: Install Tarpaulin
uses: actions-rs/[email protected]
with:
crate: cargo-tarpaulin
version: latest
use-tool-cache: true
- name: Generate Coverage
run: cargo tarpaulin
- name: Export Coverage
uses: codecov/codecov-action@v1
with:
directory: target/coverage
flags: ftml
clippy_lint:
name: Lint
runs-on: ubuntu-latest
env:
RUSTFLAGS: -A unused -D warnings
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Rust Toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
components: rustfmt, clippy
- name: Cargo Cache
uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-lint-${{ hashFiles('**/Cargo.toml') }}
- name: Rustfmt
run: cargo fmt --all -- --check
- name: Clippy
run: cargo clippy --no-deps