diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a14513a..654533f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,59 +15,52 @@ 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: Run cargo check - uses: actions-rs/cargo@v1 - with: - command: check + - name: Cache + uses: Swatinem/rust-cache@v2 + + - name: Check + run: cargo check --all-targets test: name: Test Suite runs-on: ubuntu-latest steps: - name: Checkout sources - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Install stable toolchain - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@stable with: - profile: minimal toolchain: stable - override: true - - name: Run cargo test - uses: actions-rs/cargo@v1 - with: - command: test + - name: Cache + uses: Swatinem/rust-cache@v2 + + - name: Test + run: cargo test lints: name: Lints runs-on: ubuntu-latest steps: - name: Checkout sources - uses: actions/checkout@v2 + uses: actions/checkout@v3 - 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: Run cargo fmt - uses: actions-rs/cargo@v1 - with: - command: fmt - args: --all -- --check + - name: Cache + uses: Swatinem/rust-cache@v2 + + - name: Fmt + 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