]> git.lizzy.rs Git - rust.git/commitdiff
Make audit more reliable
authorAleksey Kladov <aleksey.kladov@gmail.com>
Mon, 16 Mar 2020 14:00:33 +0000 (15:00 +0100)
committerAleksey Kladov <aleksey.kladov@gmail.com>
Mon, 16 Mar 2020 14:13:38 +0000 (15:13 +0100)
I've seen this transient error a couple of times:

https://github.com/rust-analyzer/rust-analyzer/runs/511162809?check_suite_focus=true#step:5:8

.github/workflows/ci.yaml

index ee74d74869e42ddaaed62ecea30cd3f12f1c8178..afb89f17b6d54d47fe0553351e9cb946563d6112 100644 (file)
@@ -104,7 +104,7 @@ jobs:
     - run: npm ci
       working-directory: ./editors/code
 
-    - run: npm audit
+    - run: npm audit || sleep 10 && npm audit || sleep 30 && npm audit
       working-directory: ./editors/code
 
     - run: npm run lint