Skip to content

Refactor

Refactor #66

Workflow file for this run

name: CI
on: push
jobs:
rustfmt:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
components: rustfmt
- run: cargo fmt --all -- --check
strategy:
matrix:
os:
- macOS-latest
- ubuntu-latest
- windows-latest
clippy:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
components: clippy
- run: cargo clippy --workspace --all-targets --all-features -- -D warnings
strategy:
matrix:
os:
- macOS-latest
- ubuntu-latest
- windows-latest
tests:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
- run: cargo test --workspace
strategy:
matrix:
os:
- macOS-latest
- ubuntu-latest
- windows-latest
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions-rs/[email protected]
with:
crate: cargo-llvm-cov
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
components: llvm-tools-preview
- run: cargo llvm-cov --lcov --workspace --output-path lcov.info
- uses: codecov/codecov-action@v1
with:
file: lcov.info
- uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: lcov.info