Skip to content

Fixed some liter suggestions, updated deps, bumped crate version #9

Fixed some liter suggestions, updated deps, bumped crate version

Fixed some liter suggestions, updated deps, bumped crate version #9

Workflow file for this run

name: Build Status
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
if: github.event_name == 'push'
steps:
- uses: actions/checkout@v2
- name: Style (rustfmt)
run: docker run -v cargo-cache:/root/.cargo/registry -v $PWD:/volume --rm -t ghcr.io/archisgore/rust-dev-env:latest cargo fmt --all -- --check
# Allow this lint: -D clippy::field-reassign-with-default
# Due to this: https://github.com/GREsau/schemars/pull/65
- name: Lint (Clippy)
run: docker run -v cargo-cache:/root/.cargo/registry -v $PWD:/volume --rm -t ghcr.io/archisgore/rust-dev-env:latest cargo clippy --workspace --all-targets --all-features -- -D warnings
- name: Build
run: docker run -v cargo-cache:/root/.cargo/registry -v $PWD:/volume --rm -t ghcr.io/archisgore/rust-dev-env:latest cargo build-all-features --workspace
- name: Test
run: docker run -v cargo-cache:/root/.cargo/registry -v $PWD:/volume --rm -t --privileged ghcr.io/archisgore/rust-dev-env:latest cargo test-all-features --workspace
- name: Test cargo install
run: docker run -v cargo-cache:/root/.cargo/registry -v $PWD:/volume --rm -t --privileged ghcr.io/archisgore/rust-dev-env:latest cargo install --path . -f