Skip to content

Commit 8854012

Browse files
committed
fixes
1 parent 9cc47e5 commit 8854012

2 files changed

Lines changed: 20 additions & 4 deletions

File tree

.github/workflows/check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ permissions:
1111
contents: write
1212

1313
jobs:
14-
pre-commit:
14+
check:
1515
runs-on: ubuntu-latest
1616
timeout-minutes: 25
1717
steps:

.mise.toml

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,15 @@ rust = "latest"
1616
typos = "latest"
1717

1818
# grex is just a convenient way to depends on all of the checker tools at once
19-
grex = { depends = ["rust", "dprint", "editorconfig-checker", "cargo:taplo-cli", "typos", "osv-scanner"], "version" = "latest" }
19+
grex = { depends = [
20+
"cargo:taplo-cli",
21+
"dprint",
22+
"editorconfig-checker",
23+
"osv-scanner",
24+
"rust",
25+
"rust@nightly",
26+
"typos",
27+
], "version" = "latest" }
2028

2129
[tasks]
2230
dprint-check = "dprint check"
@@ -27,27 +35,35 @@ editorconfig-check = "ec"
2735
depends = ["cargo-fmt", "dprint-fmt", "taplo-fmt"]
2836
description = "Run repository formatters"
2937

30-
[tasks.check]
38+
[tasks.check-phase-1]
3139
depends = [
3240
"cargo-check",
3341
"cargo-clippy",
3442
"cargo-fmt-check",
3543
"dprint-check",
3644
"editorconfig-check",
37-
"osv-scanner",
3845
"taplo-check",
3946
"typos",
4047
]
48+
description = "Run repository checks (phase 1: even if no Cargo.lock exists)"
49+
50+
[tasks.check]
51+
depends = [
52+
"check-phase-1",
53+
"osv-scanner",
54+
]
4155
description = "Run repository checks"
4256

4357
[tasks.cargo-check]
4458
run = "cargo check --workspace"
4559

4660
[tasks.cargo-fmt]
4761
run = "cargo +nightly fmt"
62+
tools.rust = "nightly"
4863

4964
[tasks.cargo-fmt-check]
5065
run = "cargo +nightly fmt -- --check"
66+
tools.rust = "nightly"
5167

5268
[tasks.cargo-clippy]
5369
run = "cargo clippy --workspace"

0 commit comments

Comments
 (0)