Speed up Ansible tests

Move Molecule Vagrant tests over to QEmu runners on Linux boxes
"Dog-food" the Vagrant VMs
Accelerate linting of Ansible code as well
This commit is contained in:
Greg Hellings
2022-06-08 13:56:47 -05:00
committed by GitHub
parent 0941dd9909
commit 8448e1f187
9 changed files with 39 additions and 53 deletions
+6 -4
View File
@@ -13,14 +13,15 @@ inputs:
runs:
using: composite
steps:
- shell: bash
- name: Install Packer and deps in Linux
shell: bash
if: runner.os == 'Linux'
run: |
set -exo pipefail
# Install virtualbox
sudo apt-get update
# Install QEmu, etc
sudo apt-get install -y unzip python3-{virtualenv,yaml} cloud-utils xorriso qemu-system-{x86,ppc}
sudo apt-get install -y unzip python3-{virtualenv,yaml} cloud-utils xorriso qemu-system-{x86,ppc} vagrant
# Install packer.io
curl -O https://releases.hashicorp.com/packer/${{ inputs.version }}/packer_${{ inputs.version }}_linux_amd64.zip
unzip -o packer_${{ inputs.version }}_linux_amd64.zip -d /usr/local/bin
@@ -29,9 +30,10 @@ runs:
curl -L -o pup.zip "https://github.com/ericchiang/pup/releases/download/${{ inputs.pup_version }}/pup_${{ inputs.pup_version }}_linux_amd64.zip"
sudo unzip pup.zip -d /usr/local/bin
sudo chmod +x /usr/local/bin/pup
- shell: bash
- name: Install Packer's deps in macOS
shell: bash
if: runner.os == 'macOS'
run: |
set -exo pipefail
brew install pup dvdrtools xorriso coreutils gsed
brew install pup dvdrtools xorriso coreutils gsed virtualbox vagrant
# Packer is already installed
@@ -1,9 +0,0 @@
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