File tree Expand file tree Collapse file tree 6 files changed +89
-2074
lines changed
packages/leptos/remove-scroll Expand file tree Collapse file tree 6 files changed +89
-2074
lines changed Original file line number Diff line number Diff line change 9
9
permissions :
10
10
contents : read
11
11
12
- env :
13
- RUSTFLAGS : ' -Dwarnings'
14
-
15
12
jobs :
16
- test :
17
- name : Test
13
+ lint :
14
+ name : Lint
18
15
runs-on : ubuntu-latest
19
16
17
+ env :
18
+ RUSTFLAGS : ' -Dwarnings'
19
+
20
20
steps :
21
21
- name : Checkout
22
22
uses : actions/checkout@v5
@@ -27,11 +27,40 @@ jobs:
27
27
components : clippy, rustfmt
28
28
target : wasm32-unknown-unknown
29
29
30
- - name : Check formatting
31
- run : cargo fmt --all --check
30
+ - name : Install Cargo Binary Install
31
+ uses : cargo-bins/cargo-binstall@main
32
+
33
+ - name : Install crates
34
+ run : cargo binstall -y --force cargo-deny cargo-machete cargo-sort
32
35
33
36
- name : Lint
34
37
run : cargo clippy --all-features --locked
35
38
39
+ - name : Check dependencies
40
+ run : cargo deny check
41
+
42
+ - name : Check unused dependencies
43
+ run : cargo machete
44
+
45
+ - name : Check manifest formatting
46
+ run : cargo sort --workspace --check
47
+
48
+ - name : Check formatting
49
+ run : cargo fmt --all --check
50
+
51
+ test :
52
+ name : Test
53
+ runs-on : ubuntu-latest
54
+
55
+ steps :
56
+ - name : Checkout
57
+ uses : actions/checkout@v5
58
+
59
+ - name : Set up Rust toolchain
60
+ uses : actions-rust-lang/setup-rust-toolchain@v1
61
+ with :
62
+ components : clippy, rustfmt
63
+ target : wasm32-unknown-unknown
64
+
36
65
- name : Test
37
66
run : cargo test --all-features --locked --release
Original file line number Diff line number Diff line change 1
1
repos :
2
+ - repo : https://github.com/pre-commit/mirrors-prettier
3
+ rev : v3.1.0
4
+ hooks :
5
+ - id : prettier
6
+ language : node
7
+ additional_dependencies :
8
+ - prettier@^3.6.2
9
+
2
10
- repo : https://github.com/doublify/pre-commit-rust
3
11
rev : v1.0
4
12
hooks :
5
13
- id : fmt
6
14
- id : clippy
7
15
8
- - repo : https://github.com/pre-commit/mirrors-prettier
9
- rev : v3.1.0
16
+ - repo : https://github.com/EmbarkStudios/cargo-deny
17
+ rev : 0.18.4
10
18
hooks :
11
- - id : prettier
12
- language : node
13
- additional_dependencies :
14
- - prettier@^3.2.5
19
+ - id : cargo-deny
20
+
21
+ # - repo: https://github.com/bnjbvr/cargo-machete
22
+ # rev: ba1bcd4
23
+ # hooks:
24
+ # - id: cargo-machete
25
+ - repo : local
26
+ hooks :
27
+ - id : cargo-machete
28
+ name : cargo-machete
29
+ language : rust
30
+ entry : cargo machete
31
+ types : [file, toml]
32
+ files : Cargo\.(toml|lock)
33
+ pass_filenames : false
34
+
35
+ - repo : https://github.com/DevinR528/cargo-sort
36
+ rev : v2.0.1
37
+ hooks :
38
+ - id : cargo-sort
39
+ args : ['--workspace']
Original file line number Diff line number Diff line change 2
2
"bracketSpacing" : false ,
3
3
"printWidth" : 120 ,
4
4
"singleQuote" : true ,
5
- "tabWidth" : 4 ,
6
- "trailingComma" : " none"
5
+ "tabWidth" : 4
7
6
}
You can’t perform that action at this time.
0 commit comments