This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: push | |
jobs: | |
# TODO: Find a way to run against a Gitlab instance for testing | |
#molecule: | |
# name: Run molecule against role | |
# runs-on: ubuntu-latest | |
# steps: | |
# - uses: actions/checkout@v4 | |
# - uses: actions/setup-python@v5 | |
# with: | |
# cache: pip | |
# # TODO: Remove `requests` version pin https://github.com/ansible-community/molecule-plugins/issues/256 | |
# - run: python3 -m pip install ansible molecule molecule-docker 'requests<2.32.0' | |
# - run: molecule test | |
lint: | |
name: Lint role | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
cache: pip | |
- run: python3 -m pip install ansible ansible-lint yamllint | |
- run: ansible-lint . |