*: update deps #755
Workflow file for this run
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: | |
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 }}" |