diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index 9ef0e9d..46ddb9c 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -5,6 +5,23 @@ on: jobs: molecule-packaging-tests: name: Launch molecule tests with infra-agent package + runs-on: ubuntu-latest + env: + TESTING: 'true' + steps: + - uses: actions/checkout@v2 + + - name: Molecule tests + uses: ./ + with: + repo_base_url: 'http://nr-downloads-ohai-testing.s3-website-us-east-1.amazonaws.com/gs-test' + package_name: 'nr-otel-collector' + package_version: '0.7.0' + 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,ubuntu1604,ubuntu1804,ubuntu2004,ubuntu2204,ubuntu2404" + + molecule-packaging-tests-ubuntu20: + name: Launch molecule tests with infra-agent package ubuntu20 runs-on: ubuntu-20.04 env: TESTING: 'true' @@ -18,4 +35,4 @@ jobs: package_name: 'nr-otel-collector' package_version: '0.7.0' gpg_key: 'https://download.newrelic.com/infrastructure_agent/gpg/newrelic-infra.gpg' - platforms: "ubuntu2204,ubuntu2404" + platforms: "al2,al2023,centos7,centos8,debian-bullseye,debian-buster,redhat8,redhat9,suse15.2,suse15.3,suse15.4,suse15.5,ubuntu1604,ubuntu1804,ubuntu2004,ubuntu2204,ubuntu2404" diff --git a/.gitignore b/.gitignore index f548f89..31c4505 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,4 @@ -molecule/default/molecule.yml +# having the molecule.yml in .gitignore prevents the molecule converge to run. +# https://github.com/ansible/molecule/issues/4117 + +#molecule/default/molecule.yml diff --git a/action.yml b/action.yml index ff595c3..95cbff7 100644 --- a/action.yml +++ b/action.yml @@ -23,10 +23,8 @@ runs: - name: Configure Molecule and Ansible shell: bash run: | - sudo pipx uninstall ansible-core - sudo pip3 install molecule[docker]==4.0.4 - sudo pip3 install 'rich>=10.0.0,<11.0.0' - sudo pip3 install ansible-lint[community]==5.3.2 + python3 -m pip install molecule ansible-core + python3 -m pip install "molecule-plugins[docker]" - name: Prepare OS versions shell: bash run: ${GITHUB_ACTION_PATH}/prepare_platform.sh ${{ inputs.platforms }}