Add scenarios #41
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: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
env: | |
COLORTERM: 'yes' | |
TERM: 'xterm-256color' | |
PYTEST_ADDOPTS: '--color=yes' | |
jobs: | |
ci: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python_version: ["3.9"] | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v3 | |
with: | |
path: ansible_collections/middleware_automation/quarkus | |
- name: Set up Python ${{ matrix.python_version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python_version }} | |
- name: Install yamllint, ansible and molecule | |
run: | | |
python -m pip install --upgrade pip | |
pip install yamllint molecule[lint,docker]==3.6.0 ansible-core flake8 ansible-lint voluptuous | |
if [ -f ansible_collections/middleware_automation/quarkus/requirements.txt ]; then | |
pip install -r ansible_collections/middleware_automation/quarkus/requirements.txt | |
fi | |
- name: Create default collection path | |
run: | | |
mkdir -p /home/runner/.ansible/ | |
ln -s /home/runner/work/quarkus/quarkus /home/runner/.ansible/collections | |
- name: Install ansible-lint custom rules | |
uses: actions/checkout@v3 | |
with: | |
repository: ansible-middleware/ansible-lint-custom-rules | |
path: ansible_collections/ansible-lint-custom-rules/ | |
- name: Run sanity tests | |
run: ansible-test sanity -v --color --python ${{ matrix.python_version }} --exclude changelogs/fragments/.gitignore --skip-test symlinks | |
working-directory: ./ansible_collections/middleware_automation/quarkus | |
- name: Run molecule test | |
run: molecule test --all | |
working-directory: ./ansible_collections/middleware_automation/quarkus | |
env: | |
PY_COLORS: '1' | |
ANSIBLE_FORCE_COLOR: '1' |