Răsfoiți Sursa

test(actions): stabalised unit-tests.yml

Put a retry and a timeout on the cargo install command.
MartinFillon 2 ani în urmă
părinte
comite
f25bd67821
1 a modificat fișierele cu 5 adăugiri și 1 ștergeri
  1. 5 1
      .github/workflows/unit-tests.yml

+ 5 - 1
.github/workflows/unit-tests.yml

@@ -40,7 +40,11 @@ jobs:
           toolchain: ${{ matrix.rust }}
           toolchain: ${{ matrix.rust }}
 
 
       - name: Install cargo-hack
       - name: Install cargo-hack
-        run: cargo install cargo-hack@0.5.27
+        uses: nick-fields/retry@v2
+        with:
+          timeout_minutes: 5
+          max_attemps: 5
+          command: cargo install cargo-hack
 
 
       - name: Run unit tests
       - name: Run unit tests
         run: cargo hack test 
         run: cargo hack test