Skip to content

Commit

Permalink
ci: run molecule tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alorle committed Mar 26, 2024
1 parent ec48de4 commit 61d977d
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
27 changes: 26 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,36 @@ jobs:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Check out codebase.
- name: Check out codebase
uses: actions/checkout@v4

- name: Set up Python 3.
uses: actions/setup-python@v5
with:
python-version: '3.x'
cache: 'pip'

- name: Install dependencies.
run: |
pip install -r requirements.txt
ansible-galaxy install -r molecule/default/requirements.yml
- name: Run ansible-lint
uses: ansible/ansible-lint@main

- name: Run yamllint
uses: frenck/action-yamllint@v1

test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Check out codebase
uses: actions/checkout@v4

- name: Test with molecule
uses: gofrolist/molecule-action@v2
with:
molecule_command: test
env:
ANSIBLE_FORCE_COLOR: '1'
6 changes: 6 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
ansible-core==2.16.4
ansible-lint==24.2.1
molecule==24.2.0
molecule-plugins==23.5.3
molecule-plugins[docker]==23.5.3
yamllint==1.35.1

0 comments on commit 61d977d

Please sign in to comment.