Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
gsanchezgavier committed May 13, 2024
1 parent c49316b commit 7f0d867
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 6 deletions.
19 changes: 18 additions & 1 deletion .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: "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'
Expand All @@ -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: "ubuntu1604,ubuntu1804,ubuntu2004,ubuntu2204,ubuntu2404"
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -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
6 changes: 2 additions & 4 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit 7f0d867

Please sign in to comment.