Skip to content

Commit

Permalink
Merge pull request #4 from pwalczysko/fix-build
Browse files Browse the repository at this point in the history
Initial set of changes to fix build
  • Loading branch information
jburel committed Jul 25, 2023
2 parents b853e5e + a5ae303 commit 42e40fb
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 9 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,24 @@ jobs:
name: Test
needs:
- list-scenarios
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04
strategy:
# Keep running so we can see if other tests pass
fail-fast: false
matrix:
scenario: ${{fromJson(needs.list-scenarios.outputs.matrix)}}
steps:
- uses: actions/checkout@v2
- uses: ome/action-ome-ansible-molecule@main
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
scenario: ${{ matrix.scenario }}
python-version: '3.8'
- name: Install Ansible & Molecule
run: |
pip install "ansible<8" "ansible-lint<6.13" flake8
pip install "molecule<5" "ansible-compat<4"
pip install molecule-plugins[docker] pytest-testinfra
- name: Run molecule
run: molecule test -s "${{ matrix.scenario }}"

publish:
name: Galaxy
Expand Down
1 change: 1 addition & 0 deletions meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ galaxy_info:
- name: EL
versions:
- 7
namespace: ome
role_name: reboot_server
galaxy_tags: []

Expand Down
8 changes: 4 additions & 4 deletions molecule/default/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ dependency:
name: galaxy
driver:
name: docker
lint:
name: yamllint
lint: |
yamllint .
ansible-lint
flake8
platforms:
- name: instance
image: centos:7
Expand All @@ -14,8 +16,6 @@ provisioner:
name: ansible-lint
verifier:
name: testinfra
lint:
name: flake8
scenario:
test_sequence:
- lint
Expand Down
2 changes: 1 addition & 1 deletion molecule/default/playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
- name: Converge
hosts: all
roles:
- role: ansible-role-reboot-server
- role: ome.reboot_server

0 comments on commit 42e40fb

Please sign in to comment.