@@ -99,17 +99,14 @@ jobs: |
99 | 99 | with: |
100 | 100 | save-cache: ${{ github.ref_name == 'main' }} |
101 | 101 | cache-key: test |
| 102 | + tools: just |
102 | 103 | target-dir: ${{ runner.os == 'Windows' && format('{0}/target', env.DEV_DRIVE) || '' }} |
103 | 104 |
|
104 | 105 | - run: cargo check --all-targets --all-features |
105 | 106 | env: |
106 | 107 | RUSTFLAGS: '-D warnings --cfg tokio_unstable' # also update .cargo/config.toml |
107 | 108 |
|
108 | | - # Test all crates/* packages. New crates are automatically included. |
109 | | - # Also test vite-plus-cli (lives outside crates/) to catch type sync issues. |
110 | | - - run: cargo test $(for d in crates/*/; do echo -n "-p $(basename $d) "; done) -p vite-plus-cli |
111 | | - env: |
112 | | - RUST_MIN_STACK: 8388608 |
| 109 | + - run: just test |
113 | 110 |
|
114 | 111 | test-musl: |
115 | 112 | needs: detect-changes |
@@ -133,7 +130,7 @@ jobs: |
133 | 130 | steps: |
134 | 131 | - name: Install Alpine dependencies |
135 | 132 | shell: sh {0} |
136 | | - run: apk add --no-cache bash curl git musl-dev gcc g++ python3 cmake make |
| 133 | + run: apk add --no-cache bash curl git just musl-dev gcc g++ python3 cmake make |
137 | 134 |
|
138 | 135 | - uses: taiki-e/checkout-action@7d1e50e93dc4fb3bba58f85018fadf77898aee8b # v1.4.2 |
139 | 136 | - uses: ./.github/actions/clone |
@@ -148,12 +145,8 @@ jobs: |
148 | 145 | - name: Install Rust toolchain |
149 | 146 | run: rustup show |
150 | 147 |
|
151 | | - # Test all crates/* packages. New crates are automatically included. |
152 | | - # Also test vite-plus-cli (lives outside crates/) to catch type sync issues. |
153 | 148 | # Skip separate cargo check — cargo test already compiles everything. |
154 | | - - run: cargo test $(for d in crates/*/; do echo -n "-p $(basename $d) "; done) -p vite-plus-cli |
155 | | - env: |
156 | | - RUST_MIN_STACK: 8388608 |
| 149 | + - run: just test |
157 | 150 |
|
158 | 151 | lint: |
159 | 152 | needs: detect-changes |
@@ -168,20 +161,13 @@ jobs: |
168 | 161 | with: |
169 | 162 | save-cache: ${{ github.ref_name == 'main' }} |
170 | 163 | cache-key: lint |
171 | | - tools: cargo-shear |
| 164 | + tools: just,cargo-shear |
172 | 165 | components: clippy rust-docs rustfmt |
173 | 166 |
|
174 | 167 | - run: | |
175 | 168 | cargo shear |
176 | 169 | cargo fmt --check |
177 | | - # Allow new clippy lints from the toolchain that fire in upstream |
178 | | - # rolldown crates without a `[lints]` table. |
179 | | - cargo clippy --all-targets --all-features -- -D warnings \ |
180 | | - -A clippy::byte_char_slices \ |
181 | | - -A clippy::manual_assert_eq \ |
182 | | - -A clippy::needless_return_with_question_mark \ |
183 | | - -A clippy::unused_async_trait_impl \ |
184 | | - -A clippy::useless_borrows_in_formatting |
| 170 | + just lint |
185 | 171 | # RUSTDOCFLAGS='-D warnings' cargo doc --no-deps --document-private-items |
186 | 172 |
|
187 | 173 | - uses: crate-ci/typos@37bb98842b0d8c4ffebdb75301a13db0267cef89 # v1.47.2 |
|