You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
1.2 KiB

  1. ---
  2. name: Install Puppet
  3. on:
  4. push:
  5. branches: [ main ]
  6. pull_request:
  7. branches: [ main ]
  8. jobs:
  9. install-puppet:
  10. name: ${{ matrix.collection }} / ${{ matrix.os.name }}
  11. runs-on: ubuntu-latest
  12. strategy:
  13. fail-fast: false
  14. matrix:
  15. collection: [ puppet6, puppet7 ]
  16. os: [
  17. { name: "CentOS 7", image: "litmusimage/centos:7" },
  18. { name: "CentOS 8", image: "litmusimage/centos:8" },
  19. { name: "Debian 9", image: "litmusimage/debian:9" },
  20. { name: "Debian 10", image: "litmusimage/debian:10" },
  21. # { name: "Debian 11", image: "litmusimage/debian:11" }, # TODO enable when Debian 11 builds are public
  22. { name: "Ubuntu 16.04", image: "litmusimage/ubuntu:16.04" },
  23. { name: "Ubuntu 18.04", image: "litmusimage/ubuntu:18.04" },
  24. { name: "Ubuntu 20.04", image: "litmusimage/ubuntu:20.04" },
  25. ]
  26. container:
  27. image: ${{ matrix.os.image }}
  28. steps:
  29. - name: Checkout current PR
  30. uses: actions/checkout@v2
  31. with:
  32. fetch-depth: 0
  33. - name: Install puppet-agent from ${{ matrix.collection }} collection
  34. run: bash -x test_install.sh -c ${{ matrix.collection }}