Skip to content

Commit

Permalink
Fix release
Browse files Browse the repository at this point in the history
  • Loading branch information
nervo committed Sep 13, 2024
1 parent ffc2bba commit 2cd9109
Show file tree
Hide file tree
Showing 7 changed files with 63 additions and 136 deletions.
21 changes: 0 additions & 21 deletions .github/workflows/lint.yaml

This file was deleted.

29 changes: 29 additions & 0 deletions .github/workflows/prout.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Release

on:
pull_request:
workflow_dispatch:

env:
ACTIONS_STEP_DEBUG: true

jobs:
release:
name: Release
runs-on: ubuntu-24.04
steps:

- name: Checkout
uses: actions/checkout@v4

- name: Get metadata from galaxy.yml
id: metadata
uses: CumulusDS/[email protected]
with:
file: galaxy.yml

- run: |
echo prout start
echo zzz${{ steps.metadata.outputs }}zzz
echo zzz${{ steps.metadata.outputs.version }}zzz
echo prout stop
84 changes: 0 additions & 84 deletions .github/workflows/release.yaml

This file was deleted.

29 changes: 0 additions & 29 deletions .github/workflows/test.yaml

This file was deleted.

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 2cd9109

Please sign in to comment.