Move tests to run in MacOS 12 (#2)

This commit is contained in:
Greg Hellings
2022-06-02 15:32:20 -05:00
committed by GitHub
parent 17394dffa2
commit 274b01f7f6
3 changed files with 14 additions and 2 deletions
+2 -1
View File
@@ -1,5 +1,6 @@
name: Install Packer
description: Installs the packerio executable and its attendant tools to ~/bin
description: Installs the packerio executable and its attendant tools to /usr/local/bin
for Ubuntu hosts
inputs:
version:
description: Version of Packer to install
@@ -0,0 +1,9 @@
name: Install virtualbox on Mac
description: Installs virtualbox on Mac runners
runs:
using: composite
steps:
- shell: bash
run: |
set -exo pipefail
brew install virtualbox vagrant
+3 -1
View File
@@ -57,7 +57,7 @@ jobs:
ubuntu = json.loads('${{ steps.collection.outputs.tox-envs }}')
macos = json.loads('${{ steps.vagrant.outputs.tox-envs }}')
ub_zip = [{'os': 'ubuntu-latest', 'scenario': u} for u in ubuntu]
mac_zip = [{'os': 'macos-10.15', 'scenario': m} for m in macos]
mac_zip = [{'os': 'macos-12', 'scenario': m} for m in macos]
print("::set-output name=scenarios::" + json.dumps(ub_zip + mac_zip))
lint:
@@ -83,5 +83,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup
- uses: ./.github/actions/install_virtualbox
if: startsWith(matrix.scenarios.os, 'macos')
- name: Run scenario
run: tox -e "${{ matrix.scenarios.scenario }}"