build: add integration testing for main roles #16
Workflow file for this run
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: Integration Test | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
molecule: | |
strategy: | |
fail-fast: false | |
matrix: | |
environment: | |
- clickhouse | |
- mysql_8_4 | |
- mysql_8_0 | |
- caddy | |
- elasticsearch_7_10 | |
- mongo_4_2 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: '3.8' | |
- name: Install test dependencies | |
run: pip3 install molecule[docker] yamllint ansible-lint | |
- name: Run molecule tests | |
run: molecule test -s ${{ matrix.environment }} | |
env: | |
PY_COLORS: '1' | |
ANSIBLE_FORCE_COLORS: '1' |