Skip to content

Component test

Component test #15

Workflow file for this run

---
name: Run component tests against iRODS
on:
pull_request:
paths:
- 'component.yml'
- 'molecule/component/**'
push:
paths:
- 'component.yml'
- 'molecule/component/**'
branches:
- main
jobs:
molecule:
runs-on: ubuntu-latest
if: |
${{ ! contains(github.event.head_commit.message, '#nointegrationtests') &&
( github.event_name == 'push' ||
github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name
)
}}
env:
ANSIBLE_FORCE_COLOR: '1'
ANSIBLE_STDOUT_CALLBACK: yaml
REQUIREMENTS_FILE: molecule/requirements.txt
MOLECULE_CONFIG: molecule/ext/molecule.yml
DRIVER: docker
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: '3.11'
- run: pip install -r ${{ env.REQUIREMENTS_FILE }}
- run: ansible-galaxy install -r requirements.yml
- name: Run molecule tests
run: molecule -vvv -c ${{ env.MOLECULE_CONFIG }} test -s component