mirror of
https://github.com/ansible/awx-operator.git
synced 2026-03-27 05:43:11 +00:00
48 lines
1005 B
YAML
48 lines
1005 B
YAML
---
|
|
|
|
name: CI
|
|
|
|
on:
|
|
pull_request:
|
|
branches: [devel]
|
|
|
|
push:
|
|
branches: [devel]
|
|
|
|
jobs:
|
|
pull_request:
|
|
runs-on: ubuntu-18.04
|
|
name: pull_request
|
|
env:
|
|
DOCKER_API_VERSION: "1.38"
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-python@v2
|
|
with:
|
|
python-version: "3.8"
|
|
|
|
- name: Install Dependencies
|
|
run: |
|
|
pip install \
|
|
"molecule<3.5" \
|
|
molecule-docker \
|
|
yamllint \
|
|
ansible-lint \
|
|
openshift \
|
|
jmespath \
|
|
ansible-core
|
|
|
|
- name: Install Collections
|
|
run: |
|
|
ansible-galaxy collection install community.general kubernetes.core:1.2.1 operator_sdk.util community.docker
|
|
|
|
- name: Run Molecule
|
|
env:
|
|
MOLECULE_VERBOSITY: 3
|
|
PY_COLORS: '1'
|
|
ANSIBLE_FORCE_COLOR: '1'
|
|
run: |
|
|
make kustomize
|
|
KUSTOMIZE_PATH=$(readlink -f bin/kustomize) molecule test -s kind
|