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:40:30 UTC

[incubator-opendal] branch main updated: ci: Split clippy and docs check (#1785)

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

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


The following commit(s) were added to refs/heads/main by this push:
     new 63918c2d ci: Split clippy and docs check (#1785)
63918c2d is described below

commit 63918c2d659beb3598e877cad18424dba520a731
Author: Xuanwo <gi...@xuanwo.io>
AuthorDate: Tue Mar 28 13:40:25 2023 +0800

    ci: Split clippy and docs check (#1785)
    
    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.