diff options
author | Aleksey Kladov <[email protected]> | 2020-03-16 17:10:43 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2020-03-16 17:10:43 +0000 |
commit | 3ba5845edd462bf768597bca5be7433f8361f5ec (patch) | |
tree | 3fe3717ca37590fe801b569740ec7c094062dc06 | |
parent | adcc89137d3feea8f19fad461bbde6f4bce048e5 (diff) | |
parent | 78879851bbcbce1e49fd1d831d72bb83207c2779 (diff) |
Merge pull request #3610 from matklad/audit3
Cache cargo-audit on CI
-rw-r--r-- | .github/workflows/ci.yaml | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index ad1c14507..dbfa85b20 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml | |||
@@ -16,9 +16,22 @@ jobs: | |||
16 | CARGO_NET_RETRY: 10 | 16 | CARGO_NET_RETRY: 10 |
17 | 17 | ||
18 | steps: | 18 | steps: |
19 | - name: Install Rust toolchain | ||
20 | uses: actions-rs/toolchain@v1 | ||
21 | with: | ||
22 | toolchain: stable | ||
23 | profile: minimal | ||
24 | override: true | ||
25 | |||
19 | - name: Checkout repository | 26 | - name: Checkout repository |
20 | uses: actions/checkout@v2 | 27 | uses: actions/checkout@v2 |
21 | 28 | ||
29 | - name: Cache cargo | ||
30 | uses: actions/cache@v1 | ||
31 | with: | ||
32 | path: ~/.cargo | ||
33 | key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | ||
34 | |||
22 | - run: cargo install cargo-audit | 35 | - run: cargo install cargo-audit |
23 | - run: cargo audit | 36 | - run: cargo audit |
24 | 37 | ||
@@ -108,7 +121,7 @@ jobs: | |||
108 | - run: npm ci | 121 | - run: npm ci |
109 | working-directory: ./editors/code | 122 | working-directory: ./editors/code |
110 | 123 | ||
111 | - run: npm audit || sleep 10 && npm audit || sleep 30 && npm audit | 124 | - run: npm audit || { sleep 10 && npm audit; } || { sleep 30 && npm audit; } |
112 | working-directory: ./editors/code | 125 | working-directory: ./editors/code |
113 | 126 | ||
114 | - run: npm run lint | 127 | - run: npm run lint |