Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix release #6

Merged
merged 1 commit into from
Sep 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ jobs:
id: metadata
uses: CumulusDS/[email protected]
with:
file: ./galaxy.yml
file: galaxy.yml
version: version

- name: Build
id: build
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,7 @@ jobs:
- name: Integration
run: |
make test.integration VERBOSE=1

- name: Doc
run: |
make test.doc VERBOSE=1
15 changes: 14 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ lint:
# Test #
########

## Test - Run all tests (but coverage)
## Test - Run all tests (but doc and coverage)
test: test.sanity test.units test.integration
.PHONY: test

Expand Down Expand Up @@ -59,6 +59,19 @@ test.integration:
--color yes
.PHONY: test.integration

## Test - Run documentation tests [VERBOSE]
test.doc: SHELL := $(MANALA_DOCKER_SHELL)
test.doc:
$(foreach type,module filter, \
$(foreach plugin,$(shell ansible-doc --list manala.path --type $(type) | cut -d " " -f 1), \
ansible-doc \
$(if $(VERBOSE), --verbose) \
--type $(type) \
$(plugin) && \
) \
) true
.PHONY: test.doc

## Test - Run coverage [VERBOSE]
test.coverage: SHELL := $(MANALA_DOCKER_SHELL)
test.coverage:
Expand Down
2 changes: 1 addition & 1 deletion plugins/filter/join.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def join(elements, *paths):


class FilterModule(object):
''' Manala join jinja2 filters '''
''' Manala path join jinja2 filters '''

def filters(self):
filters = {
Expand Down
19 changes: 19 additions & 0 deletions plugins/filter/join.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
DOCUMENTATION:
name: join
author:
- Manala (@manala)
short_description: Join path elements list to one or more path components
description:
- Returns a path elements list obtained by joining each element's path to one or more path components.
positional: _input,_paths
options:
_input:
description: A list of elements.
type: list
elements: object
required: true
_paths:
description: A path, or a list of paths.
type: list
elements: str
required: true