CI: cache ~/.vagrant.d/boxes

For deflaking `vagrant up`

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
This commit is contained in:
Akihiro Suda 2021-03-01 15:01:47 +09:00
parent 10bbd1a462
commit 4702af9178
No known key found for this signature in database
GPG Key ID: 49524C6F9F638F1A

View File

@ -363,6 +363,12 @@ jobs:
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: "Cache ~/.vagrant.d/boxes"
uses: actions/cache@v2
with:
path: ~/.vagrant.d/boxes
key: vagrant-${{ hashFiles('Vagrantfile*') }}
- run: | - run: |
# Retry if it fails (download.fedoraproject.org returns 404 sometimes) # Retry if it fails (download.fedoraproject.org returns 404 sometimes)
vagrant up || vagrant up vagrant up || vagrant up