test(actions): stabalised unit-tests.yml

Put a retry and a timeout on the cargo install command.
This commit is contained in:
MartinFillon 2023-09-15 12:52:35 +02:00
parent f23ff86fbe
commit f25bd67821
No known key found for this signature in database
GPG key ID: 16DC898F53F94853

View file

@ -40,7 +40,11 @@ jobs:
toolchain: ${{ matrix.rust }}
- 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
run: cargo hack test