diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index 6893762..bf4e96e 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -20,6 +20,6 @@ jobs: with: repo_base_url: 'https://download.newrelic.com/infrastructure_agent' package_name: 'newrelic-infra' - package_version: '1.52.3' + package_version: '1.57.1' gpg_key: 'https://download.newrelic.com/infrastructure_agent/gpg/newrelic-infra.gpg' platforms: "al2,al2023,centos7,centos8,debian-bullseye,debian-buster,redhat8,redhat9,suse15.2,suse15.3,suse15.4,suse15.5,suse15.6,ubuntu1604,ubuntu1804,ubuntu2004,ubuntu2204,ubuntu2404" diff --git a/action.yml b/action.yml index f15afe5..e4174d1 100644 --- a/action.yml +++ b/action.yml @@ -16,6 +16,10 @@ inputs: platforms: description: 'comma separated list of platforms with version we want to run test for' required: true + exec_name: + description: 'name of the binary that should be executed after installation' + required: false + default: '' runs: using: "composite" @@ -34,6 +38,7 @@ runs: PACKAGE_NAME: ${{ inputs.package_name }} PACKAGE_VERSION: ${{ inputs.package_version }} GPG_KEY: ${{ inputs.gpg_key }} + EXEC_NAME: ${{ inputs.exec_name != '' && inputs.exec_name || inputs.package_name }} run: "cd ${GITHUB_ACTION_PATH} && molecule converge" - name: Teardown shell: bash diff --git a/molecule/default/converge.yml b/molecule/default/converge.yml index e631059..c9e6b78 100644 --- a/molecule/default/converge.yml +++ b/molecule/default/converge.yml @@ -8,6 +8,7 @@ package_version: "{{ lookup('env', 'PACKAGE_VERSION') }}" package_name: "{{ lookup('env', 'PACKAGE_NAME') }}" gpg_key: "{{ lookup('env', 'GPG_KEY') }}" + exec_name: "{{ lookup('env', 'EXEC_NAME') }}" block: - name: Repo setup @@ -26,6 +27,6 @@ name: caos.ansible_roles.assert_version vars: target_versions: - - exec: "{{ package_name }} --version" + - exec: "{{ exec_name }} --version" version: "{{ package_version }}"