Skip to content
This repository was archived by the owner on Mar 30, 2025. It is now read-only.

Commit df3fbe6

Browse files
author
staticdev
committed
Linting and CI fixes
1 parent 82b9896 commit df3fbe6

File tree

6 files changed

+39
-45
lines changed

6 files changed

+39
-45
lines changed

.github/release-drafter.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
categories:
23
- title: ":boom: Breaking Changes"
34
label: "breaking"

.github/workflows/ci.yml

Lines changed: 24 additions & 34 deletions
Original file line numberDiff line numberDiff 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

.github/workflows/labeler.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
name: Labeler
23

34
on:

molecule/default/create.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,20 @@
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

molecule/default/molecule.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@
22
dependency:
33
name: galaxy
44
options:
5-
role-file: requirements.yml
5+
role-file: requirements.yml
66
driver:
77
name: docker
88
platforms:
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

molecule/default/verify.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
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

0 commit comments

Comments
 (0)