Use a container and action with yamllint.
This commit is contained in:
parent
8070ced90d
commit
721dd1e0e9
|
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
image: "robertdebock/github-action-molecule:4.0.0"
|
||||
image: "robertdebock/github-action-molecule:4.0.5"
|
||||
|
||||
services:
|
||||
- docker:dind
|
||||
|
|
@ -10,6 +10,7 @@ variables:
|
|||
|
||||
molecule:
|
||||
script:
|
||||
- test -f requirements.yml && ansible-galaxy install -r requirements.yml
|
||||
- image=${image} tag=${tag} molecule test
|
||||
rules:
|
||||
- if: $CI_COMMIT_REF_NAME == "master"
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ jobs:
|
|||
path: {% raw %}"${{ github.repository }}"{% endraw %}
|
||||
|
||||
- name: molecule
|
||||
uses: robertdebock/molecule-action@3.0.0
|
||||
uses: robertdebock/molecule-action@4.0.5
|
||||
with:
|
||||
command: lint
|
||||
test:
|
||||
|
|
@ -51,7 +51,7 @@ jobs:
|
|||
- name: parse apparmor for mysql
|
||||
run: sudo apparmor_parser -R /etc/apparmor.d/usr.sbin.mysqld
|
||||
- name: molecule
|
||||
uses: robertdebock/molecule-action@3.0.0
|
||||
uses: robertdebock/molecule-action@4.0.5
|
||||
with:
|
||||
image: {% raw %}${{ matrix.config.image }}{% endraw %}
|
||||
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ dependency:
|
|||
name: galaxy
|
||||
options:
|
||||
role-file: requirements.yml
|
||||
requirements-file: requirements.yml
|
||||
lint: |
|
||||
set -e
|
||||
yamllint .
|
||||
|
|
|
|||
Loading…
Reference in New Issue