Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,51 @@ jobs:

- name: Run linters
run: ./scripts/lint.sh

vagrant:
# macOS runners support nested virtualization
runs-on: macos-14
strategy:
fail-fast: false
matrix:
vm: [sr-proxy, sr-competitorsvcs, sr-competitionsvcs]
steps:
- uses: actions/checkout@v4

- name: Cache Vagrant boxes
uses: actions/cache@v4
with:
path: ~/.vagrant.d/boxes
key: ${{ runner.os }}-vagrant-${{ hashFiles('Vagrantfile') }}
restore-keys: |
${{ runner.os }}-vagrant-

- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: pip
cache-dependency-path: dev-requirements.txt

- name: Cache galaxy packages
uses: actions/cache@v4
with:
path: |
galaxy_roles
galaxy_collections
key: galaxy-${{ runner.os }}-py3.11-${{ hashFiles('galaxy-requirements.yml') }}

- name: Install dependencies
run: ./scripts/setup.sh

- name: Install vagrant
run: |
brew tap hashicorp/tap
brew install hashicorp/tap/hashicorp-vagrant
brew install --cask virtualbox

- name: Show Vagrant version
run: vagrant --version

- name: Run vagrant up
run: vagrant up ${{ matrix.vm }}
Loading