This repository was archived by the owner on Mar 30, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 6 files changed +39
-45
lines changed Expand file tree Collapse file tree 6 files changed +39
-45
lines changed Original file line number Diff line number Diff line change 1+ ---
12categories :
23 - title : " :boom: Breaking Changes"
34 label : " breaking"
Original file line number Diff line number Diff line change @@ -32,37 +32,27 @@ jobs:
3232 yamllint .
3333 ansible-lint
3434
35- # molecule:
36- # name: Molecule
37- # runs-on: ubuntu-latest
38- # strategy:
39- # matrix:
40- # distro:
41- # - centos8
42- # - centos7
43- # - ubuntu2004
44- # - ubuntu1804
45- # - debian10
46- # - debian9
47- # - fedora31
48-
49- # steps:
50- # - name: Check out the repository
51- # uses: actions/checkout@v2.3.4
52- # with:
53- # fetch-depth: 2
54-
55- # - name: Set up Python
56- # uses: actions/setup-python@v2.1.4
57- # with:
58- # python-version: "3.9"
59-
60- # - name: Install test dependencies
61- # run: pip3 install ansible molecule[docker] docker
62-
63- # - name: Run Molecule tests
64- # run: molecule test
65- # env:
66- # PY_COLORS: '1'
67- # ANSIBLE_FORCE_COLOR: '1'
68- # MOLECULE_DISTRO: ${{ matrix.distro }}
35+ molecule :
36+ name : Molecule
37+ runs-on : ubuntu-latest
38+
39+ steps :
40+ - name : Check out the repository
41+ uses : actions/checkout@v2.3.4
42+ with :
43+ fetch-depth : 2
44+
45+ - name : Set up Python
46+ uses : actions/setup-python@v2.1.4
47+ with :
48+ python-version : " 3.9"
49+
50+ - name : Install test dependencies
51+ run : pip3 install ansible molecule[docker] docker
52+
53+ - name : Run Molecule tests
54+ run : molecule test
55+ env :
56+ PY_COLORS : " 1"
57+ ANSIBLE_FORCE_COLOR : " 1"
58+ MOLECULE_DISTRO : ubuntu2010
Original file line number Diff line number Diff line change 1+ ---
12name : Labeler
23
34on :
Original file line number Diff line number Diff line change 55 gather_facts : false
66 no_log : " {{ molecule_no_log }}"
77 tasks :
8-
98 # TODO: Developer must implement and populate 'server' variable
109
1110 - when : server.changed | default(false) | bool
1211 block :
1312 - name : Populate instance config dict
1413 set_fact :
15- instance_conf_dict : {
16- ' instance ' : " {{ }}" ,
17- ' address ' : " {{ }}" ,
18- ' user ' : " {{ }}" ,
19- ' port ' : " {{ }}" ,
20- ' identity_file ' : " {{ }}" , }
14+ instance_conf_dict :
15+ {
16+ " instance " : " {{ }}" ,
17+ " address " : " {{ }}" ,
18+ " user " : " {{ }}" ,
19+ " port " : " {{ }}" ,
20+ " identity_file " : " {{ }}" ,
21+ }
2122 with_items : " {{ server.results }}"
2223 register : instance_config_dict
2324
Original file line number Diff line number Diff line change 22dependency :
33 name : galaxy
44 options :
5- role-file : requirements.yml
5+ role-file : requirements.yml
66driver :
77 name : docker
88platforms :
99 - name : instance
10+ image : " staticdev/docker-${MOLECULE_DISTRO:-centos7}-ansible:latest"
1011 command : ${MOLECULE_DOCKER_COMMAND:-""}
1112 volumes :
1213 - /sys/fs/cgroup:/sys/fs/cgroup:ro
Original file line number Diff line number Diff line change 55 hosts : all
66 gather_facts : false
77 tasks :
8- - name : Example assertion
9- assert :
10- that : true
8+ - name : Example assertion
9+ assert :
10+ that : true
You can’t perform that action at this time.
0 commit comments