diff --git a/.github/workflows/rust-ci.yml b/.github/workflows/rust-ci.yml index d9b5198..624de6c 100644 --- a/.github/workflows/rust-ci.yml +++ b/.github/workflows/rust-ci.yml @@ -9,17 +9,26 @@ env: jobs: build_and_test: - name: Rust project - latest + name: Rust CI runs-on: ubuntu-latest strategy: matrix: toolchain: - stable - # - beta - # - nightly steps: - - uses: actions/checkout@v3 - - run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }} - - run: cargo build --verbose - - run: cargo test --verbose - - run: cargo fmt + - uses: actions/checkout@v4 + + - name: Set up Rust + run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }} + + - name: Format + run: cargo fmt --check + + - name: Build + run: cargo build --verbose --locked + + - name: Lint + run: cargo clippy --all-targets --all-features + + - name: Test + run: cargo test --verbose --locked