diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6c1ab7c..dbd40fa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,7 +11,7 @@ env: jobs: # 1 - check: + tokio_check: name: Rust project check runs-on: ${{ matrix.os }} strategy: @@ -36,35 +36,55 @@ jobs: command: check args: --features "tokio, futures" - - name: Run cargo clippy on monoio - uses: actions-rs/cargo@v1 - with: - command: check - args: --features "monoio, futures" - - name: Run cargo build on tokio uses: actions-rs/cargo@v1 with: command: build args: --features "tokio, futures" - - name: Run cargo build on monoio + - name: Run cargo test on tokio uses: actions-rs/cargo@v1 with: - command: build + command: test + args: --workspace --features "tokio, futures" + + monoio_check: + name: Rust project check + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: + - ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Install latest + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + override: true + components: rustfmt, clippy + + # `cargo check` command here will use installed `nightly` + # as it is set as an "override" for current directory + + - name: Run cargo clippy on monoio + uses: actions-rs/cargo@v1 + with: + command: check args: --features "monoio, futures" - - name: Run cargo test on tokio + - name: Run cargo build on monoio uses: actions-rs/cargo@v1 with: - command: test - args: --workspace --features "tokio, futures" + command: build + args: --features "monoio, futures" - name: Run cargo test on monoio uses: actions-rs/cargo@v1 with: command: test args: --workspace --features "monoio, futures" + # 2 fmt: name: Rust fmt