diff --git a/.github/workflows/RustCI.yml b/.github/workflows/RustCI.yml index 2caba396..2000cebe 100644 --- a/.github/workflows/RustCI.yml +++ b/.github/workflows/RustCI.yml @@ -15,67 +15,45 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Install toolchain (minimal, stable) - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: stable - override: true - - uses: actions-rs/cargo@v1 - with: - command: check - args: --verbose + uses: dtolnay/rust-toolchain@stable + - name: Run cargo check + run: cargo check --verbose test: name: Test runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Install toolchain (minimal, stable) - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: stable - override: true - - uses: actions-rs/cargo@v1 - with: - command: test - args: --verbose + uses: dtolnay/rust-toolchain@stable + - name: Run cargo test + run: cargo test --verbose lint: name: Lint runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Install toolchain (minimal+clippy, stable) - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@stable with: - profile: minimal - toolchain: stable - override: true components: clippy - - uses: actions-rs/cargo@v1 - with: - command: clippy - args: --verbose -- -D warnings + - name: Run cargo clippy + run: cargo clippy --verbose -- -D warnings format: name: Format runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Install toolchain (minimal+rustfmt, stable) - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@stable with: - profile: minimal - toolchain: stable - override: true components: rustfmt - - uses: actions-rs/cargo@v1 - with: - command: fmt - args: --verbose -- --check + - name: Run cargo fmt + run: cargo fmt --verbose -- --check