forked from moonrepo/moon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjustfile
53 lines (34 loc) · 1.09 KB
/
justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
set windows-shell := ["pwsh.exe", "-NoLogo", "-Command"]
export MOON_TEST := "true"
init:
cargo install cargo-binstall
cargo binstall cargo-insta cargo-nextest cargo-llvm-cov
# BUILDING
build:
cargo build --workspace
# CHECKING
format:
cargo fmt --all -- --emit=files
format-check:
cargo fmt --all --check
lint:
cargo clippy --workspace --all-targets
lint-fix:
cargo clippy --workspace --all-targets --fix --allow-dirty --allow-staged
# TESTING
test name="":
cargo nextest run --workspace --config-file ./.cargo/nextest.toml {{name}}
test-ci:
cargo nextest run --workspace --config-file ./.cargo/nextest.toml --profile ci
# CODE COVERAGE
cov:
cargo llvm-cov nextest --workspace --config-file ./.cargo/nextest.toml --profile ci
gen-report:
cargo llvm-cov report --lcov --ignore-filename-regex error --output-path ./report.txt
gen-html:
cargo llvm-cov report --html --ignore-filename-regex error --open
# OTHER
schemas:
cargo run -p moon_config
gql:
graphql-client introspect-schema http://localhost:8080/graphql --output nextgen/api/schema.json --header "X-Moonbase-TestingId: 1"