feat(cicd): add unit testing jobs
Some checks failed
test / Linting (push) Successful in 8s
test / Molecule tests (default, debian11) (push) Successful in 49s
test / Molecule tests (default, ubuntu2004) (push) Successful in 1m17s
test / Molecule tests (with_custom_config, debian11) (push) Failing after 3s
test / Molecule tests (default, debian12) (push) Successful in 1m23s
test / Molecule tests (with_custom_config, debian12) (push) Failing after 3s
test / Molecule tests (with_custom_config, ubuntu2004) (push) Failing after 3s
test / Molecule tests (default, ubuntu2204) (push) Successful in 54s
test / Molecule tests (with_custom_config, ubuntu2204) (push) Failing after 2s
Some checks failed
test / Linting (push) Successful in 8s
test / Molecule tests (default, debian11) (push) Successful in 49s
test / Molecule tests (default, ubuntu2004) (push) Successful in 1m17s
test / Molecule tests (with_custom_config, debian11) (push) Failing after 3s
test / Molecule tests (default, debian12) (push) Successful in 1m23s
test / Molecule tests (with_custom_config, debian12) (push) Failing after 3s
test / Molecule tests (with_custom_config, ubuntu2004) (push) Failing after 3s
test / Molecule tests (default, ubuntu2204) (push) Successful in 54s
test / Molecule tests (with_custom_config, ubuntu2204) (push) Failing after 2s
This commit is contained in:
parent
9b6bf1684e
commit
e25f838a8d
@ -22,3 +22,31 @@ jobs:
|
|||||||
- name: "YAML lint"
|
- name: "YAML lint"
|
||||||
run: yamllint . -f colored -c .yamllint
|
run: yamllint . -f colored -c .yamllint
|
||||||
working-directory: ${{ gitea.workspace }}
|
working-directory: ${{ gitea.workspace }}
|
||||||
|
|
||||||
|
molecule-test:
|
||||||
|
name: Molecule tests
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: lint
|
||||||
|
container:
|
||||||
|
image: git.ednz.fr/container-factory/ansible-runner:act-latest
|
||||||
|
credentials:
|
||||||
|
username: ${{ secrets.ACTIONS_USER }}
|
||||||
|
password: ${{ secrets.ACTIONS_TOKEN }}
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
test_os: [debian11, debian12, ubuntu2004, ubuntu2204]
|
||||||
|
scenario: [default, with_custom_config]
|
||||||
|
env:
|
||||||
|
ANSIBLE_HOST_KEY_CHECKING: 'false'
|
||||||
|
ANSIBLE_FORCE_COLOR: 'true'
|
||||||
|
ANSIBLE_PYTHON_INTERPRETER: /usr/bin/python3
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: "Molecule test"
|
||||||
|
run: molecule test -s ${{ matrix.scenario }}
|
||||||
|
shell: bash
|
||||||
|
working-directory: ${{ gitea.workspace }}
|
||||||
|
env:
|
||||||
|
MOLECULE_TEST_OS: ${{ matrix.test_os }}
|
||||||
|
Loading…
Reference in New Issue
Block a user