Skip to content

chore: update CI configuration #39

chore: update CI configuration

chore: update CI configuration #39

Workflow file for this run

name: sanity
on:
push:
branches:
- main
pull_request:
env:
NAMESPACE: community
COLLECTION_NAME: upcloud
jobs:
sanity:
name: Sanity test (${{ matrix.ansible }})
strategy:
matrix:
ansible:
- stable-2.13
- stable-2.14
- stable-2.15
- devel
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v1
with:
path: ansible_collections/${{env.NAMESPACE}}/${{env.COLLECTION_NAME}}
- name: Set up Python
uses: actions/setup-python@v1
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
- name: Run sanity tests
run: ansible-test sanity --docker -v --color
- name: Test building a release
run: ansible-galaxy collection build