1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-30 16:40:57 -05:00

ci: make it faster (#10920)

...by avoiding a full clone of crates.io index history.
This commit is contained in:
Bert Belder 2021-06-23 15:02:54 +00:00
parent 5a250b9e55
commit 6f8975ad78
No known key found for this signature in database
GPG key ID: 7A77887B2E2ED461

View file

@ -216,6 +216,16 @@ jobs:
with: with:
cache-path: ./target 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 - name: test_format.js
if: matrix.kind == 'lint' if: matrix.kind == 'lint'
run: deno run --unstable --allow-write --allow-read --allow-run ./tools/format.js --check run: deno run --unstable --allow-write --allow-read --allow-run ./tools/format.js --check