File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change @@ -216,3 +216,43 @@ jobs:
216
216
shell : bash
217
217
run : |
218
218
python3 -m unittest util/test_compare_test_results.py
219
+
220
+ pre_commit :
221
+ name : Pre-commit hooks
222
+ runs-on : ubuntu-latest
223
+ steps :
224
+ - name : Checkout repository
225
+ uses : actions/checkout@v4
226
+ with :
227
+ persist-credentials : false
228
+
229
+ - name : Setup Rust toolchain
230
+ uses : dtolnay/rust-toolchain@master
231
+ with :
232
+ toolchain : stable
233
+ components : rustfmt, clippy
234
+
235
+ - name : Cache Rust dependencies
236
+ uses : Swatinem/rust-cache@v2
237
+
238
+ - name : Setup Python
239
+ uses : actions/setup-python@v5
240
+ with :
241
+ python-version : ' 3.x'
242
+
243
+ - name : Install pre-commit
244
+ run : pip install pre-commit
245
+
246
+ - name : Install cspell
247
+ run : npm install -g cspell
248
+
249
+ - name : Cache pre-commit environments
250
+ uses : actions/cache@v4
251
+ with :
252
+ path : ~/.cache/pre-commit
253
+ key : pre-commit-${{ runner.os }}-${{ hashFiles('.pre-commit-config.yaml') }}
254
+ restore-keys : |
255
+ pre-commit-${{ runner.os }}-
256
+
257
+ - name : Run pre-commit
258
+ run : pre-commit run
You can’t perform that action at this time.
0 commit comments