Skip to content

Commit

Permalink
Fix vagrant provision github action
Browse files Browse the repository at this point in the history
- Update runner to macos-12
- Force vagrant destroy at the end of the workflow
  • Loading branch information
theodore86 committed May 2, 2023
1 parent 41bf376 commit f188928
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/provision.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ jobs:
- name: "Checkout source code"
uses: "actions/checkout@v3.3.0"

- name: "Install prerequisites"
run: |
brew install --cask virtualbox@6.1.12
brew install --cask vagrant@2.3.4
- name: "Cache Vagrant boxes"
uses: "actions/cache@v3.2.3"
with:
Expand All @@ -28,9 +33,9 @@ jobs:
restore-keys: |
${{ runner.os }}-vagrant-
- name: "Vagrant base box update"
- name: "Show Vagrant version"
run: |
vagrant box update
vagrant --version
- name: "Installation of Vagrant plugins"
run: |
Expand All @@ -40,6 +45,6 @@ jobs:
run: |
vagrant up --provider=virtualbox
- name: "Destroy the Vagrant (sandbox)"
- name: "Destroy Vagrant (sandbox)"
run: |
vagrant destroy -f

0 comments on commit f188928

Please sign in to comment.