diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 4673daf8c..800bf1494 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -35,16 +35,12 @@ jobs: uses: actions/checkout@v3 - name: Install stable toolchain - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@master with: - profile: minimal toolchain: stable - override: true - uses: Swatinem/rust-cache@v1 - name: Run cargo check - uses: actions-rs/cargo@v1 - with: - command: check + run: cargo check test_os: name: Tests on ${{ matrix.os }} with Rust ${{ matrix.rust }} @@ -67,11 +63,9 @@ jobs: uses: actions/checkout@v3 - name: Install ${{ matrix.rust }} toolchain - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@master with: - profile: minimal toolchain: ${{ matrix.rust }} - override: true - uses: Swatinem/rust-cache@v1 - name: Install Protoc @@ -80,22 +74,13 @@ jobs: repo-token: ${{ secrets.GITHUB_TOKEN }} - name: Run cargo test (API) - uses: actions-rs/cargo@v1 - with: - command: test - args: -p console-api + run: cargo test -p console-api - name: Run cargo test (subscriber) - uses: actions-rs/cargo@v1 - with: - command: test - args: -p console-subscriber + run: cargo test -p console-subscriber - name: Run cargo test (console) - uses: actions-rs/cargo@v1 - with: - command: test - args: -p tokio-console --locked + run: cargo test -p tokio-console --locked lints: name: Lints @@ -105,22 +90,14 @@ jobs: uses: actions/checkout@v3 - name: Install stable toolchain - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@master with: - profile: minimal toolchain: stable - override: true components: rustfmt, clippy - uses: Swatinem/rust-cache@v1 - 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 + run: cargo clippy -- -D warnings