Browse Source

Test with local install script

main
Gabriel Nagy 3 years ago
parent
commit
66eb1743fb
No known key found for this signature in database GPG Key ID: A2B2C9C0F6B672B3
  1. 6
      .github/workflows/install_puppet.yaml
  2. 3
      test_install.sh

6
.github/workflows/install_puppet.yaml

@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
collection: [ puppet6, puppet7, puppet6-nightly, puppet7-nightly]
collection: [ puppet6, puppet7 ]
os: [
# { name: "CentOS 6", image: "litmusimage/centos:6" },
# { name: "CentOS 7", image: "litmusimage/centos:7" },
@ -27,5 +27,9 @@ jobs:
container:
image: ${{ matrix.os.image }}
steps:
- name: Checkout current PR
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install puppet-agent from ${{ matrix.collection }} collection
run: bash -x test_install.sh -c ${{ matrix.collection }}

3
test_install.sh

@ -31,7 +31,8 @@ while [[ "$#" -gt 0 ]]; do
shift
done
curl -sSL https://raw.githubusercontent.com/puppetlabs/install-puppet/main/install.sh | bash -s -- "${INSTALL_OPTIONS[@]}"
bash install.sh "${INSTALL_OPTIONS[@]}"
# curl -sSL https://raw.githubusercontent.com/puppetlabs/install-puppet/main/install.sh | bash -s -- "${INSTALL_OPTIONS[@]}"
if [ -n "$EXPECTED_VERSION" ]; then
if ! exists $PUPPET_BIN; then

Loading…
Cancel
Save