Skip to content

Commit

Permalink
Enable ansible-lint action (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssbarnea authored Jun 22, 2023
1 parent 5e24f71 commit f5315c9
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .ansible-lint-ignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# This file contains ignores rule violations for ansible-lint
galaxy.yml galaxy[tags]
galaxy.yml galaxy[version-incorrect]
12 changes: 12 additions & 0 deletions .github/workflows/ansible-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# .github/workflows/ansible-lint.yml
name: ansible-lint
"on":
pull_request:
branches: ["main", "stable", "release/v*"]
jobs:
build:
name: Ansible Lint # Naming the build is important to use it as a status check
runs-on: ubuntu-latest
steps:
- name: Run ansible-lint
uses: ansible/ansible-lint@main
2 changes: 1 addition & 1 deletion .github/workflows/ansible-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# If you need help please ask in #ansible-community on Libera.Chat IRC

name: CI
on:
"on":
# Run CI against all pushes (direct commits) and Pull Requests
- push
- pull_request
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tox.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: tox

on:
"on":
create: # is used for publishing to PyPI and TestPyPI
tags: # any tag regardless of its name, no branches
push: # only publishes pushes to the main branch to TestPyPI
Expand Down
8 changes: 6 additions & 2 deletions .yamllint
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,13 @@ rules:
brackets:
max-spaces-inside: 1
level: error
comments:
# https://github.com/prettier/prettier/issues/6780
min-spaces-from-content: 1

# https://github.com/adrienverge/yamllint/issues/141
comments-indentation: false
document-start: disable
line-length: disable
truthy:
allowed-values: ['true', 'false', 'on']
# https://github.com/adrienverge/yamllint/issues/141
comments-indentation: disable
3 changes: 2 additions & 1 deletion galaxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@

namespace: community
name: molecule
version: 0.1.0
version: 1.0.0
readme: README.md
authors:
- Sorin Sbarnea (github/ssbarnea)
description: Ansible Molecule collection contains molecule specific plugins.
license:
- MIT
tags:
- application
- molecule
- testing
repository: https://github.com/ansible-collections/community.molecule
Expand Down

0 comments on commit f5315c9

Please sign in to comment.