Merge pull request #176 from compscidr/renovate/community.general-10.x #45
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
name: verify | |
on: [push, pull_request] | |
jobs: | |
lint: | |
name: Ansible Lint # Naming the build is important to use it as a status check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Run ansible-lint | |
uses: ansible/ansible-lint@main | |
# optional (see below): | |
with: | |
args: "" | |
setup_python: "true" | |
working_directory: "ansible" | |
requirements_file: "" | |
# https://github.com/geerlingguy/ansible-role-redis/blob/master/.github/workflows/ci.yml | |
deploy-test: | |
runs-on: ubuntu-24.04 | |
name: Molecule Test | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install 1Password CLI | |
# we need op to be on the "deploying device, ie, the GH runner" | |
uses: 1password/install-cli-action@v1 | |
- name: Install and run molecule | |
env: # Or as an environment variable | |
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }} | |
run: | | |
pwd | |
ls | |
cd ansible | |
python3 -m venv venv | |
. venv/bin/activate | |
pip3 install molecule molecule-docker passlib | |
molecule test |