Skip to content

Commit

Permalink
Merge pull request #6 from manala/fix-release
Browse files Browse the repository at this point in the history
Fix release
  • Loading branch information
nervo authored Sep 13, 2024
2 parents ffc2bba + 94328ae commit 342dfdc
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 3 deletions.
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

0 comments on commit 342dfdc

Please sign in to comment.