From 66eb1743fb94c971dbc5d091c25c4d5a0798544f Mon Sep 17 00:00:00 2001 From: Gabriel Nagy Date: Mon, 2 Aug 2021 14:00:21 +0300 Subject: [PATCH] Test with local install script --- .github/workflows/install_puppet.yaml | 6 +++++- test_install.sh | 3 ++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/install_puppet.yaml b/.github/workflows/install_puppet.yaml index ae058cb..5d4e597 100644 --- a/.github/workflows/install_puppet.yaml +++ b/.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 }} diff --git a/test_install.sh b/test_install.sh index c52cb65..c4e695b 100755 --- a/test_install.sh +++ b/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