summaryrefslogtreecommitdiffstats
path: root/ansible_collections/community/sap/.github/workflows/ansible-test.yml
blob: c29b8123aadf3f68c32bec598d24f2857d2d2d0c (plain)
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
# name: CI
# on:
#   # Run CI against all pushes (direct commits, also merged PRs), Pull Requests
#   push:
#   pull_request:
#   # Run CI once per day (at 06:00 UTC)
#   # This ensures that even if there haven't been commits that we are still testing against latest version of ansible-test for each ansible-base version
#   schedule:
#     - cron: '0 6 * * *'
# env:
#   NAMESPACE: community
#   COLLECTION_NAME: sap 

# jobs:
#   sanity:
#     name: Sanity (Ⓐ${{ matrix.ansible }})
#     strategy:
#       matrix:
#         ansible:
#           - stable-2.9
#           - stable-2.10
#           - stable-2.11
#           - stable-2.12
#           - devel
#     runs-on: ubuntu-latest
#     steps:

#       - name: Check out code
#         uses: actions/checkout@v2

#       - name: Perform sanity testing with ansible-test
#         uses: ansible-community/ansible-test-gh-action@release/v1
#         with:
#           ansible-core-version: ${{ matrix.ansible }}
#           testing-type: sanity
        

#   units:
#     runs-on: ubuntu-latest
#     name: Units (Ⓐ${{ matrix.ansible }}+py${{ matrix.python }})
#     strategy:
#       # As soon as the first unit test fails, cancel the others to free up the CI queue
#       fail-fast: true
#       matrix:
#         ansible:
#           - stable-2.9 # Only if your collection supports Ansible 2.9
#           - stable-2.10
#           - stable-2.11
#           - stable-2.12
#           - devel
#         python:
#           - 2.6
#           - 2.7
#           - 3.5
#           - 3.6
#           - 3.7
#           - 3.8
#           - 3.9
#         exclude:
#           # Because ansible-test doesn't support python3.9 for Ansible 2.9
#           - ansible: stable-2.9
#             python: 3.9
#           - ansible: devel
#             python: 2.6

#     steps:
#       - name: Check out code
#         uses: actions/checkout@v2

#       - name: Perform unit testing with ansible-test
#         uses: ansible-community/ansible-test-gh-action@release/v1
#         with:
#           ansible-core-version: ${{ matrix.ansible }}
#           target-python-version: ${{ matrix.python }}
#           python-version: 3.8
#           testing-type: units
#           test-deps: >-
#             ansible.netcommon
#             ansible.utils

# # Please consult the Readme for information on why we disabled integration tests temporarily.

#   # integration:
#   #   runs-on: ubuntu-latest
#   #   name: I (Ⓐ${{ matrix.ansible }}+py${{ matrix.python }})
#   #   strategy:
#   #     fail-fast: false
#   #     matrix:
#   #       ansible:
#   #         - stable-2.9 # Only if your collection supports Ansible 2.9
#   #         - stable-2.10
#   #         - stable-2.11
#   #         - stable-2.12
#   #         - devel
#   #       python:
#   #         - 2.6
#   #         - 2.7
#   #         - 3.5
#   #         - 3.6
#   #         - 3.7
#   #         - 3.8
#   #         - 3.9
#   #       exclude:
#   #         # Because ansible-test doesn't support python3.9 for Ansible 2.9
#   #         - ansible: stable-2.9
#   #           python: 3.9
#   #         - ansible: devel
#   #           python: 2.6

#   #   steps:
#   #     - name: Check out code
#   #       uses: actions/checkout@v2

#   #     - name: Perform integration testing with ansible-test
#   #       uses: ansible-community/ansible-test-gh-action@release/v1
#   #       with:
#   #         ansible-core-version: ${{ matrix.ansible }}
#   #         python-version: 3.8
#   #         pre-test-cmd: >-
#   #           mkdir -p tests/output/
#   #           touch tests/output/coverage
#   #         target-python-version: ${{ matrix.python }}
#   #         testing-type: integration
#   #         test-deps: >-
#   #           ansible.netcommon
#   #           ansible.utils