Skip to content

*: update deps

*: update deps #755

Workflow file for this run

on:
push:
branches:
- master
- develop
pull_request:
branches:
- master
- develop
name: Test
jobs:
test:
name: Lint and Test
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- uses: actions/checkout@v2
name: Checkout ๐Ÿ›Ž๏ธ
- uses: actions/cache@v2
with:
path: |
~/.cargo/bin
~/.cargo/registry/index
~/.cargo/registry/cache
~/.cargo/git
~/.cargo/.crates.toml
~/.cargo/.crates2.json
target
key: ${{ runner.os }}-cargo-test
- uses: actions-rs/toolchain@v1
name: Setup Cargo Toolchain ๐Ÿ›Ž๏ธ
with:
components: rustfmt, clippy, llvm-tools-preview
toolchain: nightly
default: true
- name: Check Code Format ๐Ÿ”ง
run: |
make format
git diff --quiet
- name: Linting The Code ๐Ÿฉน
run: make clippy
- uses: taiki-e/install-action@cargo-llvm-cov
- name: Running Tests With Code Coverage ๐Ÿš€
run: cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info
- name: Upload Coverage To Codecov โฌ†๏ธ
uses: codecov/codecov-action@v1
with:
files: lcov.info
fail_ci_if_error: true
sanitizer_test:
name: Test with Sanitizer
runs-on: ubuntu-latest
strategy:
matrix:
sanitizer: ["address", "leak", "memory", "thread"]
steps:
- uses: actions/checkout@v2
name: Checkout ๐Ÿ›Ž๏ธ
- uses: actions/cache@v2
with:
path: |
~/.cargo/bin
~/.cargo/registry/index
~/.cargo/registry/cache
~/.cargo/git
~/.cargo/.crates.toml
~/.cargo/.crates2.json
target
key: ${{ runner.os }}-${{ matrix.sanitizer }}-cargo-sanitizer-test
- uses: actions-rs/toolchain@v1
name: Setup Cargo Toolchain ๐Ÿ›Ž๏ธ
with:
components: rustfmt, clippy, rust-src
toolchain: nightly
default: true
- uses: actions-rs/cargo@v1
name: Running Tests with ${{ matrix.sanitizer }} sanitizer ๐Ÿš€
with:
command: test
args: --all-features -Zbuild-std --target x86_64-unknown-linux-gnu -- --test-threads=1
env:
TSAN_OPTIONS: "suppressions=.github/workflows/tsan"
RUSTFLAGS: "-Zsanitizer=${{ matrix.sanitizer }}"