Skip to content

Move RHEL specifics into RHEL case #15

Move RHEL specifics into RHEL case

Move RHEL specifics into RHEL case #15

Workflow file for this run

name: Puppet module
on:
push:
paths:
- .github/workflows/puppet.yaml
- puppet/**
jobs:
prep:
name: Download modules
runs-on: ubuntu-20.04
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
submodules: false
- name: Install dependencies
run: |
wget https://apt.puppet.com/puppet-release-focal.deb
sudo dpkg -i puppet-release-focal.deb
wget https://apt.puppet.com/puppet-tools-release-focal.deb
sudo dpkg -i puppet-tools-release-focal.deb
sudo apt-get update
sudo apt-get install -y puppet-agent puppet-bolt
sudo update-alternatives --install /usr/bin/puppet puppet-agent /opt/puppetlabs/bin/puppet 10
sudo chmod +t /tmp # workaround ruby need within prep.sh
- name: Prep project
run: |
./puppet/prep.sh
puppet-lint:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
submodules: false
- name: puppet-lint
uses: scottbrenner/puppet-lint-action@master
with:
args: puppet/ --fail-on-warnings