Radish alpha
r
Radicle desktop app
Radicle
Git (anonymous pull)
Log in to clone via SSH
Add the cargo checks to the check script
Sebastian Martinez committed 1 year ago
commit 918cc213d8d378d0d274bc987e251e111db654f5
parent 6017c191a9f6b62a03075970dcaf73be6d86ee26
5 files changed +18 -13
modified .github/workflows/check.yml
@@ -12,7 +12,7 @@ jobs:
          node-version: "20.9.0"
      - uses: actions/checkout@v4
      - run: npm ci
-
      - run: npm run check
+
      - run: npm run check-js
  lint-rust:
    name: lint rust
    runs-on: ubuntu-latest
@@ -29,7 +29,4 @@ jobs:
        with:
          packages: libgtk-3-dev libsoup-3.0-dev libjavascriptcoregtk-4.1-dev libwebkit2gtk-4.1-dev
          version: 1.0
-
      - name: Run clippy
-
        run: cargo clippy --all --tests -- -Dwarnings
-
      - name: Check formatting
-
        run: cargo fmt --all --check
+
      - run: npm run check-rs
modified package.json
@@ -8,7 +8,9 @@
    "start": "vite",
    "build": "vite build",
    "preview": "vite preview",
-
    "check": "scripts/check",
+
    "check": "scripts/check-js && scripts/check-rs",
+
    "check-js": "scripts/check-js",
+
    "check-rs": "scripts/check-rs",
    "format": "npx prettier '**/*.@(ts|js|svelte|json|css|html|yml)' --write",
    "tauri": "npx tauri"
  },
deleted scripts/check
@@ -1,7 +0,0 @@
-
#!/bin/sh
-
set -e
-

-
npx tsc --noEmit
-
npx svelte-check --tsconfig tsconfig.json --fail-on-warnings --compiler-warnings missing-custom-element-compile-options:ignore
-
npx eslint --cache --cache-location node_modules/.cache/eslint --max-warnings 0 .
-
npx prettier "**/*.@(ts|js|svelte|json|css|html|yml)" --ignore-path .gitignore --check --cache
added scripts/check-js
@@ -0,0 +1,7 @@
+
#!/bin/sh
+
set -e
+

+
npx tsc --noEmit
+
npx svelte-check --tsconfig tsconfig.json --fail-on-warnings --compiler-warnings missing-custom-element-compile-options:ignore
+
npx eslint --cache --cache-location node_modules/.cache/eslint --max-warnings 0 .
+
npx prettier "**/*.@(ts|js|svelte|json|css|html|yml)" --ignore-path .gitignore --check --cache
added scripts/check-rs
@@ -0,0 +1,6 @@
+
#!/bin/sh
+
set -e
+

+
cargo check --manifest-path ./src-tauri/Cargo.toml
+
cargo clippy --manifest-path ./src-tauri/Cargo.toml -- -Dwarnings
+
cargo fmt --manifest-path ./src-tauri/Cargo.toml --check