mirror of
https://github.com/denoland/deno.git
synced 2024-11-29 16:30:56 -05:00
ci: make it faster (#10920)
...by avoiding a full clone of crates.io index history.
This commit is contained in:
parent
08154bf82e
commit
9729dfc056
1 changed files with 10 additions and 0 deletions
10
.github/workflows/ci.yml
vendored
10
.github/workflows/ci.yml
vendored
|
@ -216,6 +216,16 @@ jobs:
|
|||
with:
|
||||
cache-path: ./target
|
||||
|
||||
- name: Shallow clone crates.io index
|
||||
shell: bash
|
||||
run: |
|
||||
if [ ! -d ~/.cargo/registry/index/github.com-1ecc6299db9ec823/.git ]
|
||||
then
|
||||
git clone --depth 1 --no-checkout \
|
||||
https://github.com/rust-lang/crates.io-index \
|
||||
~/.cargo/registry/index/github.com-1ecc6299db9ec823
|
||||
fi
|
||||
|
||||
- name: test_format.js
|
||||
if: matrix.kind == 'lint'
|
||||
run: deno run --unstable --allow-write --allow-read --allow-run ./tools/format.js --check
|
||||
|
|
Loading…
Reference in a new issue