2022-08-23 15:42:32 +02:00
|
|
|
name: Full Integration Test
|
|
|
|
on:
|
|
|
|
schedule:
|
|
|
|
- cron: '0 0 * * 0'
|
2022-08-25 09:38:49 +02:00
|
|
|
workflow_dispatch:
|
2022-08-23 15:42:32 +02:00
|
|
|
env:
|
|
|
|
NAMESPACE: grafana
|
|
|
|
COLLECTION_NAME: grafana
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
|
|
|
integration:
|
|
|
|
runs-on: ubuntu-latest
|
2022-08-29 12:31:26 +02:00
|
|
|
name: ${{ matrix.ansible }}-py${{ matrix.python }}
|
2022-08-23 15:42:32 +02:00
|
|
|
strategy:
|
2022-08-29 12:31:26 +02:00
|
|
|
fail-fast: true
|
2022-08-23 15:42:32 +02:00
|
|
|
max-parallel: 1
|
|
|
|
matrix:
|
|
|
|
ansible:
|
|
|
|
- stable-2.11
|
|
|
|
- stable-2.12
|
|
|
|
- stable-2.13
|
2022-08-29 12:31:26 +02:00
|
|
|
- devel
|
2022-08-23 15:42:32 +02:00
|
|
|
python:
|
|
|
|
- '2.7'
|
|
|
|
- '3.5'
|
|
|
|
- '3.6'
|
|
|
|
- '3.7'
|
|
|
|
- '3.8'
|
|
|
|
- '3.9'
|
2022-08-29 12:31:26 +02:00
|
|
|
- '3.10'
|
2022-08-23 15:42:32 +02:00
|
|
|
exclude:
|
|
|
|
- ansible: stable-2.11
|
|
|
|
python: '3.10'
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Check out code
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
path: ansible_collections/${{env.NAMESPACE}}/${{env.COLLECTION_NAME}}
|
|
|
|
|
|
|
|
- name: create integration_config
|
|
|
|
working-directory: ansible_collections/${{env.NAMESPACE}}/${{env.COLLECTION_NAME}}/tests/integration
|
|
|
|
run: |
|
|
|
|
cat <<EOF > integration_config.yml
|
|
|
|
stack_name: ${{ secrets.ANSIBLE_TEST_STACK_NAME }}
|
|
|
|
org_name: ${{ secrets.ANSIBLE_TEST_ORG_NAME }}
|
|
|
|
grafana_cloud_api_key: ${{ secrets.ANSIBLE_TEST_CLOUD_API_KEY }}
|
|
|
|
grafana_api_key: ${{ secrets.ANSIBLE_TEST_GRAFANA_API_KEY }}
|
|
|
|
EOF
|
|
|
|
|
|
|
|
- name: Set up Python
|
|
|
|
uses: actions/setup-python@v2
|
|
|
|
with:
|
2022-08-29 12:31:26 +02:00
|
|
|
python-version: '3.10'
|
2022-08-23 15:42:32 +02:00
|
|
|
|
|
|
|
- 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 integration test
|
|
|
|
run: ansible-test integration -v --color --retry-on-error --continue-on-error --diff --python ${{ matrix.python }} --docker --coverage
|
2022-08-29 12:31:26 +02:00
|
|
|
working-directory: ./ansible_collections/${{env.NAMESPACE}}/${{env.COLLECTION_NAME}}
|