Skip to content

Commit

Permalink
Fix Galaxy meta info
Browse files Browse the repository at this point in the history
Fixes #71
  • Loading branch information
mrlesmithjr committed Nov 22, 2021
1 parent 9730043 commit 9446ef2
Show file tree
Hide file tree
Showing 10 changed files with 2,323 additions and 99 deletions.
3 changes: 1 addition & 2 deletions .ansible-lint
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
skip_list:
- role-name
skip_list: []
3 changes: 3 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[flake8]
exclude = .venv/
max-line-length = 88
42 changes: 21 additions & 21 deletions .github/workflows/molecule.yml
Original file line number Diff line number Diff line change
@@ -1,41 +1,41 @@
---

# This is a basic workflow to help you get started with Actions

name: Molecule

# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches-ignore:
- main
- master
pull_request:
branches:
- develop
- main
- master
- tags/*

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:

lint:
# The type of runner that the job will run on
runs-on: ubuntu-latest
runs-on: macos-10.15

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2

- name: install lint prerequisite
run: |
sudo apt -y install python3-setuptools ansible-lint
- name: Install molecule
with:
submodules: recursive
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements*.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: |
sudo apt update
sudo apt -y install python3-setuptools python3 python3-pip docker vagrant
sudo pip3 install wheel
sudo pip3 install molecule testinfra yamllint ansible-lint flake8 molecule-vagrant
python -m pip install --upgrade pip
pip install -r requirements.txt -r requirements-dev.txt
- name: molecule lint
run: |
molecule lint
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
.idea
**/__pycache__
venv/
.venv/
2 changes: 1 addition & 1 deletion .yamllint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
extends: default

ignore: |
venv/
.venv/
rules:
braces:
Expand Down
5 changes: 4 additions & 1 deletion molecule/default/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ driver:
name: vagrant
provider:
name: virtualbox
lint: yamllint . && flake8 && ansible-lint
lint: |
yamllint .
ansible-lint
flake8
platforms:
- name: CentOS-Molecule-LVM
box: mrlesmithjr/centos7
Expand Down
Loading

0 comments on commit 9446ef2

Please sign in to comment.