-
Notifications
You must be signed in to change notification settings - Fork 17
36 lines (35 loc) · 1.2 KB
/
install_puppet.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
---
name: Install Puppet
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
# Even though checkout@v3 is end-of-life, we cannot upgrade to v4
# because it cannot run on CentOS 7 and Ubuntu 18.04
jobs:
install-puppet:
name: ${{ matrix.collection }} / ${{ matrix.os.name }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
collection: [ puppet7, puppet8 ]
os: [
{ name: "CentOS 7", image: "litmusimage/centos:7" },
{ name: "Debian 10", image: "litmusimage/debian:10" },
{ name: "Debian 11", image: "litmusimage/debian:11" },
{ name: "Debian 12", image: "litmusimage/debian:12" },
{ name: "Ubuntu 18.04", image: "litmusimage/ubuntu:18.04" },
{ name: "Ubuntu 20.04", image: "litmusimage/ubuntu:20.04" },
{ name: "Ubuntu 22.04", image: "litmusimage/ubuntu:22.04" },
]
container:
image: ${{ matrix.os.image }}
steps:
- name: Checkout current PR
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install puppet-agent from ${{ matrix.collection }} collection
run: bash -x test_install.sh -c ${{ matrix.collection }}