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/opendal.git


The following commit(s) were added to refs/heads/main by this push:
     new e12b45e000 ci: setup cloudfilter (#4936)
e12b45e000 is described below

commit e12b45e0005f3dba08fe5e661f39e9e0adc7bce2
Author: Ho 229 <[email protected]>
AuthorDate: Mon Jul 29 21:52:48 2024 +0800

    ci: setup cloudfilter (#4936)
    
    * ci: setup cloudfilter
    
    * fix: ci target os
---
 .github/workflows/ci_integration_cloudfilter.yml | 51 ++++++++++++++++++++++++
 integrations/cloudfilter/examples/readonly.rs    |  2 +-
 2 files changed, 52 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/ci_integration_cloudfilter.yml 
b/.github/workflows/ci_integration_cloudfilter.yml
new file mode 100644
index 0000000000..10637141d7
--- /dev/null
+++ b/.github/workflows/ci_integration_cloudfilter.yml
@@ -0,0 +1,51 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+name: Integration Cloud Filter CI
+
+on:
+  push:
+    branches:
+      - main
+  pull_request:
+    branches:
+      - main
+    paths:
+      - "integrations/cloudfilter/**"
+      - "core/**"
+      - ".github/workflows/ci_integration_cloudfilter.yml"
+
+concurrency:
+  group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
+  cancel-in-progress: true
+
+jobs:
+  check_clippy:
+    runs-on: windows-latest
+    steps:
+      - uses: actions/checkout@v4
+
+      - name: Setup Rust toolchain
+        uses: ./.github/actions/setup
+        with:
+          need-rocksdb: true
+          need-protoc: true
+          github-token: ${{ secrets.GITHUB_TOKEN }}
+
+      - name: Cargo clippy
+        working-directory: integrations/cloudfilter
+        run: cargo clippy --all-targets --all-features --workspace -- -D 
warnings
diff --git a/integrations/cloudfilter/examples/readonly.rs 
b/integrations/cloudfilter/examples/readonly.rs
index bc65767210..d2bd580f80 100644
--- a/integrations/cloudfilter/examples/readonly.rs
+++ b/integrations/cloudfilter/examples/readonly.rs
@@ -16,7 +16,7 @@ async fn main() {
     let root = env::var("ROOT").expect("$ROOT is set");
     let client_path = env::var("CLIENT_PATH").expect("$CLIENT_PATH is set");
 
-    let mut fs = services::Fs::default().root(&root);
+    let fs = services::Fs::default().root(&root);
 
     let op = Operator::new(fs).expect("build operator").finish();
 

Reply via email to