name: no_debug
on: [push]
jobs:
test:
name: Build and test using ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest] steps:
- uses: actions/checkout@v1
- uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Build
run: cargo build --locked --release --verbose
- name: Run tests
run: cargo test --locked --release --verbose
- name: Run ignored tests
run: cargo test --locked --release --verbose -- --ignored
lint:
name: Lint using ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v1
- uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Install clippy
run: rustup component add clippy
- name: Clippy
run: cargo clippy --all-features -- -D warnings
- name: Install fmt
run: rustup component add rustfmt
- name: Format
run: cargo fmt --all -- --check