diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 476859e..6c35389 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,11 +6,11 @@ jobs: check: runs-on: ubuntu-latest steps: + - uses: actions/checkout@v4 - name: Install Rust - uses: hecrj/setup-rust-action@v1 + uses: dtolnay/rust-toolchain@stable with: - rust-version: stable - - uses: actions/checkout@v2 + components: clippy, rustfmt - name: Check formatting run: cargo fmt -- --check --config group_imports=StdExternalCrate - name: Clippy @@ -26,10 +26,8 @@ jobs: rust: [stable, 1.66.0] steps: - name: Install Rust - uses: hecrj/setup-rust-action@v1 - with: - rust-version: ${{ matrix.rust }} - - uses: actions/checkout@v2 + uses: dtolnay/rust-toolchain@${{ matrix.rust }} + - uses: actions/checkout@v4 - name: Install Tarpaulin if: matrix.os == 'ubuntu-latest' && matrix.rust == 'stable' run: cargo install cargo-tarpaulin --version 0.18.0-alpha3