generated from ansible-collections/collection_template
-
Notifications
You must be signed in to change notification settings - Fork 57
92 lines (89 loc) · 3.22 KB
/
ansible-test-integration.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
name: Integration tests
on:
push:
branches: [main]
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: false
env:
# NOTE: Yes, the origination is not from a PR :smile: but we do have
# integration tests on PR and we want the cloud resources uniquely named
PR_NUMBER: 0
jobs:
integration:
runs-on: ubuntu-22.04
environment: main
timeout-minutes: 60
name: Integration (Ⓐ${{ matrix.versions.ansible }} on ${{ matrix.versions.python }} / ${{ matrix.module }})
strategy:
fail-fast: false
max-parallel: 1
matrix:
# https://docs.ansible.com/ansible/latest/reference_appendices/release_and_maintenance.html
versions:
- ansible: stable-2.14
python: "3.9"
module:
- digital_ocean_account_info
- digital_ocean_balance_info
- digital_ocean_block_storage
- digital_ocean_cdn_endpoints
- digital_ocean_cdn_endpoints_info
- digital_ocean_certificate
- digital_ocean_certificate_info
- digital_ocean_database
- digital_ocean_database_info
- digital_ocean_domain
- digital_ocean_domain_info
# - digital_ocean_domain_record # No test
- digital_ocean_domain_record_info
- digital_ocean_droplet
- digital_ocean_droplet_info
- digital_ocean_firewall
- digital_ocean_firewall_info
- digital_ocean_floating_ip
- digital_ocean_floating_ip_info
- digital_ocean_image_info
- digital_ocean_kubernetes
- digital_ocean_kubernetes_info
- digital_ocean_load_balancer
- digital_ocean_load_balancer_info
- digital_ocean_monitoring_alerts
# - digital_ocean_monitoring_alerts_info # No test
- digital_ocean_project
- digital_ocean_project_info
- digital_ocean_project_resource_info
- digital_ocean_region_info
- digital_ocean_size_info
- digital_ocean_snapshot
- digital_ocean_snapshot_info
- digital_ocean_spaces
- digital_ocean_spaces_info
- digital_ocean_sshkey
- digital_ocean_sshkey_info
- digital_ocean_tag
- digital_ocean_tag_info
- digital_ocean_volume_info
- digital_ocean_vpc
- digital_ocean_vpc_info
steps:
- name: Perform testing
uses: ansible-community/ansible-test-gh-action@release/v1
with:
pre-test-cmd: >-
DO_API_KEY=${{ secrets.DO_API_KEY }}
AWS_ACCESS_KEY_ID=${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY=${{ secrets.AWS_SECRET_ACCESS_KEY }}
./tests/utils/render.sh
tests/integration/integration_config.yml.template
> tests/integration/integration_config.yml
ansible-core-version: ${{ matrix.versions.ansible }}
origin-python-version: ${{ matrix.versions.python }}
target: ${{ matrix.module }}
target-python-version: ${{ matrix.versions.python }}
testing-type: integration
test-deps: >-
ansible.netcommon
ansible.utils
community.general