Skip to content

Commit

Permalink
Fix clippy errors + lint, use turbo CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Geometrically committed Oct 18, 2024
1 parent 663ab83 commit 8dd9555
Show file tree
Hide file tree
Showing 186 changed files with 10,729 additions and 6,547 deletions.
40 changes: 0 additions & 40 deletions .github/workflows/rust-ci.yml

This file was deleted.

5 changes: 4 additions & 1 deletion .github/workflows/turbo-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:

jobs:
build:
name: Build, Test, and Lint (Turbo)
name: Build, Test, and Lint
runs-on: ubuntu-22.04

steps:
Expand Down Expand Up @@ -66,5 +66,8 @@ jobs:
- name: Lint
run: pnpm lint

- name: Start docker compose
run: docker-compose up -d

- name: Test
run: pnpm test
63 changes: 35 additions & 28 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions apps/app-playground/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"name": "@modrinth/app-playground",
"scripts": {
"build": "cargo build --release",
"lint": "cargo fmt --check && cargo clippy --all-targets --all-features -- -D warnings",
"fix": "cargo fmt && cargo clippy --fix",
"dev": "cargo run",
"test": "cargo test"
}
}
7 changes: 5 additions & 2 deletions apps/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
"scripts": {
"build": "tauri build",
"tauri": "tauri",
"dev": "tauri dev"
"dev": "tauri dev",
"test": "cargo test",
"lint": "cargo fmt --check && cargo clippy --all-targets --all-features -- -D warnings",
"fix": "cargo fmt && cargo clippy --fix"
},
"devDependencies": {
"@tauri-apps/cli": "2.0.0-rc.16"
Expand All @@ -12,4 +15,4 @@
"@modrinth/app-frontend": "workspace:*",
"@modrinth/app-lib": "workspace:*"
}
}
}
4 changes: 2 additions & 2 deletions apps/labrinth/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ rust_decimal = { version = "1.33.1", features = [
"serde-with-float",
"serde-with-str",
] }
redis = { version = "0.24.0", features = ["tokio-comp", "ahash", "r2d2"]}
deadpool-redis = "0.14.0"
redis = { version = "0.27.5", features = ["tokio-comp", "ahash", "r2d2"]}
deadpool-redis = "0.18.0"
clickhouse = { version = "0.11.2", features = ["uuid", "time"] }
uuid = { version = "1.2.2", features = ["v4", "fast-rng", "serde"] }

Expand Down
10 changes: 10 additions & 0 deletions apps/labrinth/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"name": "@modrinth/labrinth",
"scripts": {
"build": "cargo build --release",
"lint": "cargo fmt --check && cargo clippy --all-targets --all-features -- -D warnings",
"fix": "cargo fmt && cargo clippy --fix",
"dev": "cargo run",
"test": "cargo test"
}
}
Loading

0 comments on commit 8dd9555

Please sign in to comment.