You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by xu...@apache.org on 2023/03/28 05:32:24 UTC

[incubator-opendal] 01/01: ci: Split clippy and docs check

This is an automated email from the ASF dual-hosted git repository.

xuanwo pushed a commit to branch polish-ci
in repository https://gitbox.apache.org/repos/asf/incubator-opendal.git

commit eac89dcf4400a58ea3135845f64796542f02ef82
Author: Xuanwo <gi...@xuanwo.io>
AuthorDate: Tue Mar 28 13:32:02 2023 +0800

    ci: Split clippy and docs check
    
    Signed-off-by: Xuanwo <gi...@xuanwo.io>
---
 .github/workflows/ci.yml | 47 ++++++++++++++++++++++++++++++++++++++++-------
 1 file changed, 40 insertions(+), 7 deletions(-)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 5f6116db..1a0d594f 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -41,6 +41,27 @@ jobs:
     steps:
       - uses: actions/checkout@v3
 
+      - name: Setup Rust toolchain
+        uses: ./.github/actions/setup
+        with:
+          cache-key: "-check"
+
+      - name: Check license headers
+        uses: korandoru/hawkeye@v1.5.4
+
+      - name: Cargo format
+        run: cargo fmt --all -- --check
+
+  check_docs:
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v3
+
+      - name: Setup Rust toolchain
+        uses: ./.github/actions/setup
+        with:
+          cache-key: "-check"
+
       - name: Checkout python env
         uses: actions/setup-python@v4
         with:
@@ -52,22 +73,34 @@ jobs:
           distribution: temurin
           java-version: "11"
 
+      - name: Cargo doc
+        run: cargo doc --lib --no-deps --all-features -p opendal
+
+  check_clippy:
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v3
+
       - name: Setup Rust toolchain
         uses: ./.github/actions/setup
         with:
           cache-key: "-check"
 
-      - name: Check license headers
-        uses: korandoru/hawkeye@v1.5.4
+      - name: Checkout python env
+        uses: actions/setup-python@v4
+        with:
+          python-version: "3.8"
+
+      - name: Checkout java env
+        uses: actions/setup-java@v3
+        with:
+          distribution: temurin
+          java-version: "11"
 
-      - name: Cargo format
-        run: cargo fmt --all -- --check
       - name: Cargo clippy
         run: cargo clippy --all-targets --all-features --workspace -- -D warnings
-      - name: Cargo doc
-        run: cargo doc --lib --no-deps --all-features -p opendal
 
-  msrv_check:
+  check_msrv:
     runs-on: ubuntu-latest
     env:
       # OpenDAL's MSRV is 1.60.