Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch runners to Ubuntu 24.04, use vagrant from hashicorp #57

Closed
wants to merge 8 commits into from
Closed
Show file tree
Hide file tree
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
6 changes: 3 additions & 3 deletions .github/workflows/basic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ on:
type: string
unit_runs_on:
description: the runner group used for unit jobs run on
default: ubuntu-latest
default: ubuntu-24.04
daberkow marked this conversation as resolved.
Show resolved Hide resolved
required: false
type: string

Expand All @@ -41,7 +41,7 @@ jobs:
run:
working-directory: ${{ inputs.working-directory }}
name: Static validations
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
timeout-minutes: ${{ inputs.timeout_minutes }}
outputs:
puppet_unit_test_matrix: ${{ steps.get-outputs.outputs.puppet_unit_test_matrix }}
Expand Down Expand Up @@ -102,7 +102,7 @@ jobs:

tests:
needs: unit
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
name: Test suite
steps:
- run: echo Test suite completed
Expand Down
16 changes: 11 additions & 5 deletions .github/workflows/beaker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,12 @@ on:
type: string
unit_runs_on:
description: the runner group used for unit jobs run on
default: ubuntu-latest
default: ubuntu-24.04
required: false
type: string
acceptance_runs_on:
description: the runner group used for acceptance jobs run on
default: ubuntu-20.04
default: ubuntu-24.04
required: false
type: string
secrets:
Expand All @@ -78,7 +78,7 @@ jobs:
run:
working-directory: ${{ inputs.working-directory }}
name: Static validations
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
timeout-minutes: ${{ inputs.timeout_minutes }}
outputs:
puppet_unit_test_matrix: ${{ steps.get-outputs.outputs.puppet_unit_test_matrix }}
Expand Down Expand Up @@ -165,8 +165,10 @@ jobs:
- name: Setup libvirt for Vagrant
if: ${{ inputs.beaker_hypervisor == 'vagrant_libvirt' }}
run: |
wget -O- https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list
sudo apt-get update
sudo apt-get install -y --no-install-recommends vagrant vagrant-libvirt libvirt-clients libvirt-daemon-system libvirt-daemon qemu qemu-system-x86 qemu-utils
sudo apt-get install -y --no-install-recommends dnsmasq vagrant libvirt-dev libvirt-clients libvirt-daemon-system libvirt-daemon qemu-system qemu-system-x86 qemu-utils
sudo chmod 666 /var/run/libvirt/libvirt-sock
- name: Setup ruby
uses: ruby/setup-ruby@v1
Expand All @@ -175,6 +177,10 @@ jobs:
bundler-cache: true
cache-version: ${{ inputs.cache-version }}
working-directory: ${{ inputs.working-directory }}
- name: Final vagrant setup
if: ${{ inputs.beaker_hypervisor == 'vagrant_libvirt' }}
run: |
vagrant plugin install vagrant-libvirt
daberkow marked this conversation as resolved.
Show resolved Hide resolved
- name: Run tests
run: bundle exec rake beaker
env: ${{ matrix.env }}
Expand All @@ -183,7 +189,7 @@ jobs:
needs:
- unit
- acceptance
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
name: Test suite
steps:
- run: echo Test suite completed
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
run:
working-directory: ${{ inputs.working-directory }}
name: 'Puppet Forge'
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
if: github.repository_owner == inputs.allowed_owner
steps:
- name: Checkout repository
Expand Down