Enhancement: Added verify.yml to molecule scenarios #211
Workflow file for this run
This file contains hidden or 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: CI | |
| 'on': | |
| pull_request: | |
| push: | |
| branches: | |
| - netways | |
| jobs: | |
| lint: | |
| name: Lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out the codebase. | |
| uses: actions/checkout@v4 | |
| - name: Set up Python 3.10 | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.10' | |
| - name: Install test dependencies. | |
| run: pip3 install yamllint ansible-lint | |
| - name: Lint code. | |
| run: | | |
| yamllint . | |
| ansible-lint . | |
| molecule-default: | |
| name: Molecule (default) | |
| runs-on: ubuntu-latest | |
| needs: lint | |
| strategy: | |
| matrix: | |
| distro: | |
| - debian12 | |
| - rockylinux8 | |
| - rockylinux9 | |
| scenario: | |
| - patroni-etcdv2-ssl | |
| - patroni-etcdv3-ssl | |
| steps: | |
| - name: Check out the codebase. | |
| uses: actions/checkout@v4 | |
| - name: Set up Python 3.10 | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.10' | |
| - name: Install test dependencies. | |
| run: sudo apt update | |
| - name: Install test dependencies. | |
| run: sudo apt install -y libssl-dev | |
| - name: Install dependencies | |
| run: | | |
| python3 -m pip install --upgrade pip | |
| python3 -m pip install 'ansible-core<2.17' ansible-lint molecule molecule-docker pytest passlib requests | |
| - name: Run Molecule tests | |
| run: molecule test -s ${{ matrix.scenario }} | |
| env: | |
| PY_COLORS: '1' | |
| ANSIBLE_FORCE_COLOR: '1' | |
| MOLECULE_DISTRO: ${{ matrix.distro }} |