mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-13 13:48:50 +00:00
commit
3ba5845edd
1 changed files with 14 additions and 1 deletions
15
.github/workflows/ci.yaml
vendored
15
.github/workflows/ci.yaml
vendored
|
@ -16,9 +16,22 @@ jobs:
|
|||
CARGO_NET_RETRY: 10
|
||||
|
||||
steps:
|
||||
- name: Install Rust toolchain
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: stable
|
||||
profile: minimal
|
||||
override: true
|
||||
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Cache cargo
|
||||
uses: actions/cache@v1
|
||||
with:
|
||||
path: ~/.cargo
|
||||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
||||
|
||||
- run: cargo install cargo-audit
|
||||
- run: cargo audit
|
||||
|
||||
|
@ -108,7 +121,7 @@ jobs:
|
|||
- run: npm ci
|
||||
working-directory: ./editors/code
|
||||
|
||||
- run: npm audit || sleep 10 && npm audit || sleep 30 && npm audit
|
||||
- run: npm audit || { sleep 10 && npm audit; } || { sleep 30 && npm audit; }
|
||||
working-directory: ./editors/code
|
||||
|
||||
- run: npm run lint
|
||||
|
|
Loading…
Reference in a new issue