Merge pull request #350 from jacobdotcosta/issue-333 #44
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: Pull Request Test | |
on: | |
push: | |
workflow_dispatch: | |
pull_request: | |
jobs: | |
kind-test: | |
name: Test Kind Deployment | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
kind_version: [v0.20.0] | |
steps: | |
- name: Checkout project | |
uses: actions/checkout@v3 | |
- name: Deploy kind | |
run: | | |
curl -Lo ./kind/kind https://kind.sigs.k8s.io/dl/${{ matrix.kind_version }}/kind-linux-amd64 | |
chmod 755 kind | |
./kind/registry.sh install --registry-name kind-registry.local | |
./kind/kind.sh install --registry-name kind-registry.local | |
test-openstack-roles: | |
name: Test Collection Openstack Roles | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
openstack_version: ["master"] | |
# python: [ pypy3.8 ] | |
python: [ 3.11 ] | |
roles: [openstack_vm] | |
steps: | |
- name: Checkout project | |
uses: actions/checkout@v3 | |
- name: Deploy devstack | |
uses: EmilienM/[email protected] | |
with: | |
branch: ${{ matrix.openstack_version }} | |
enabled_services: 'ir-api,s-account,s-container,s-object,s-proxy,swift' | |
cache: devstack | |
- name: Install Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python }} | |
cache: pip | |
- name: Install python requirements | |
run: pip install -r requirements.txt | |
- name: Build Ansible Collection | |
run: ansible-galaxy collection build ansible/ansible_collections/snowdrop/cloud_infra --output build/ --force | |
- name: Install Ansible Collection | |
run: ansible-galaxy collection install build/snowdrop-cloud_infra-$(yq -r .version ansible/ansible_collections/snowdrop/cloud_infra/galaxy.yml).tar.gz --upgrade | |
- name: Run tests | |
run: | | |
molecule test --scenario-name github | |
working-directory: ansible/ansible_collections/snowdrop/cloud_infra/roles/${{ matrix.roles }} | |
... |