File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 6
6
branches :
7
7
- main
8
8
9
+ permissions :
10
+ contents : read
11
+
9
12
env :
10
13
RUSTFLAGS : ' -Dwarnings'
11
14
@@ -19,19 +22,16 @@ jobs:
19
22
uses : actions/checkout@v5
20
23
21
24
- name : Set up Rust toolchain
22
- run : rustup toolchain install stable --no-self-update --profile default --target wasm32-unknown-unknown
23
-
24
- - name : Set up Rust cache
25
- uses : swatinem/rust-cache@v2
25
+ uses : actions-rust-lang/setup-rust-toolchain@v1
26
26
with :
27
- cache-on-failure : true
28
- save-if : ${{ github.ref == 'refs/heads/main' }}
27
+ components : clippy, rustfmt
28
+ target : wasm32-unknown-unknown
29
29
30
30
- name : Check formatting
31
31
run : cargo fmt --all --check
32
32
33
33
- name : Lint
34
- run : cargo clippy --all-features
34
+ run : cargo clippy --all-features --locked
35
35
36
36
- name : Test
37
- run : cargo test --all-features
37
+ run : cargo test --all-features --locked --release
You can’t perform that action at this time.
0 commit comments