Skip to content

Commit 61aa9ad

Browse files
committed
Just: Add CI
Run CI via just check
1 parent a0f6b28 commit 61aa9ad

File tree

1 file changed

+26
-1
lines changed

1 file changed

+26
-1
lines changed

justfile

+26-1
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,34 @@ open:
77
trunk serve --open
88

99
# Run unit tests in WASM in Firefox
10-
test:
10+
test-wasm:
1111
wasm-pack test --headless --firefox
1212

13+
# Run unit tests on local computer
14+
test:
15+
cargo test
16+
17+
# Run code linter
18+
lint:
19+
cargo clippy --all-targets -- --deny warnings
20+
21+
# Format code
22+
fmt:
23+
cargo fmt --all
24+
25+
# Check if code is formatted
26+
fmtcheck:
27+
cargo fmt --all -- --check
28+
29+
# Check code (CI)
30+
check:
31+
cargo --version
32+
rustc --version
33+
just fmtcheck
34+
just lint
35+
just test
36+
just test-wasm
37+
1338
# Remove all temporary files
1439
clean:
1540
rm -rf target

0 commit comments

Comments
 (0)