Browse Source

Update rust_general.yml

AppFlowy.IO 3 years ago
parent
commit
3363952a23
1 changed files with 6 additions and 3 deletions
  1. 6 3
      .github/workflows/rust_general.yml

+ 6 - 3
.github/workflows/rust_general.yml

@@ -20,10 +20,13 @@ jobs:
           toolchain: stable
           toolchain: stable
           override: true
           override: true
           components: rustfmt
           components: rustfmt
+
       - uses: actions-rs/cargo@v1
       - uses: actions-rs/cargo@v1
-      - run: cargo fmt --all -- --check
-        working-directory: frontend/rust-lib
-        
+        with:
+          path: frontend/rust-lib
+          command: fmt
+          args: --all -- --check
+
   rust-clippy:
   rust-clippy:
     runs-on: ubuntu-latest
     runs-on: ubuntu-latest
     name: Clippy
     name: Clippy