Skip to content

Add sanity check on PRs #4

Add sanity check on PRs

Add sanity check on PRs #4

Workflow file for this run

name: Ansible Galaxy Publish
on:
pull_request:
jobs:
sanity:
name: Sanity Check
strategy:
matrix:
ansible:
- stable-2.9
- stable-2.15
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
path: ansible_collections/redhatci/ocp
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: 3.11
- name: Install ansible-base ${{ matrix.ansible }}
run: pip install https://github.com/ansible/ansible/archive/${{ matrix.ansible }}.tar.gz --disable-pip-version-check
# Only check changed files, don't fail just yet
- name: Run sanity test
run: ansible-test sanity -v --docker --color --coverage --changed --base-branch main --failure-ok
working-directory: ansible_collections/redhatci/ocp