diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8c338e3..e312ecd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,19 +15,15 @@ jobs: uses: actions/checkout@v2 - name: Install stable toolchain - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@stable with: - profile: minimal toolchain: stable - override: true - name: Rust Cache uses: Swatinem/rust-cache@v2 - name: Run cargo check - uses: actions-rs/cargo@v1 - with: - command: check + run: cargo check test: name: Test Suite @@ -37,19 +33,15 @@ jobs: uses: actions/checkout@v2 - name: Install stable toolchain - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@stable with: - profile: minimal toolchain: stable - override: true - name: Rust Cache uses: Swatinem/rust-cache@v2 - name: Run cargo test - uses: actions-rs/cargo@v1 - with: - command: test + run: cargo test lints: name: Lints @@ -59,24 +51,16 @@ jobs: uses: actions/checkout@v2 - name: Install stable toolchain - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@stable with: - profile: minimal toolchain: stable - override: true components: rustfmt, clippy - name: Rust Cache uses: Swatinem/rust-cache@v2 - name: Run cargo fmt - uses: actions-rs/cargo@v1 - with: - command: fmt - args: --all -- --check + run: cargo fmt --all -- --check - name: Run cargo clippy - uses: actions-rs/cargo@v1 - with: - command: clippy - args: -- -D warnings \ No newline at end of file + run: cargo clippy -- -D warnings \ No newline at end of file