-
Notifications
You must be signed in to change notification settings - Fork 24
/
config.yml
68 lines (63 loc) · 2.12 KB
/
config.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
version: 2.1
orbs:
collection-testing: maxhoesel-ansible/[email protected]
filters: &semver-tagged
tags:
# Official Semver Regex. Yes, it's LOOOONG
only: /^v(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/
branches:
ignore: /.*/
executors:
pytest:
machine:
# python 3.11, needed for ansible-test 2.15
image: ubuntu-2204:2023.10.1
resource_class: large
jobs:
test:
parameters:
parallelism:
description: Number of parallel runners
type: integer
ansible-version:
description: Version of Ansible to use for testing
type: string
step-version:
type: string
description: Version of smallstep to test
node-python-version:
description: Version of python to use for module tests
type: string
executor: pytest
parallelism: << parameters.parallelism >>
steps:
- collection-testing/pytest:
pytest-args: >
--ci
--ansible-version "<< parameters.ansible-version >>"
--step-cli-version "<< parameters.step-version >>"
--step-ca-version "<< parameters.step-version >>"
--node-python-version "<< parameters.node-python-version >>"
workflows:
ci:
jobs:
- test:
name: Test (ansible-<< matrix.ansible-version >>, step-<< matrix.step-version >>)
parallelism: 3
matrix:
parameters:
ansible-version: ["2.16", "2.17"]
step-version: ["latest", "0.24.0"]
node-python-version: ["3.7"]
- collection-testing/pre-commit-lint:
name: Lint
- collection-testing/antsibull-docs:
name: Generate Docs
- collection-testing/publish-github:
name: Publish Release to GitHub
context: collection-publishing
filters: *semver-tagged
- collection-testing/publish-galaxy:
name: Publish to Galaxy
context: collection-publishing
filters: *semver-tagged