name: Tests on: [push, pull_request] env: RUSTFLAGS: -Dwarnings jobs: build_and_test: name: Build and test runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - uses: dtolnay/rust-toolchain@stable - name: tests uses: actions-rs/cargo@v1 with: command: test args: --all check_fmt_and_docs: name: Checking fmt and docs runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - uses: dtolnay/rust-toolchain@stable with: components: rustfmt - name: fmt run: cargo fmt --all -- --check - name: Docs run: cargo doc --no-deps