Bertrand Lanson
2441791ffe
Some checks failed
development / Check commit compliance (push) Successful in 5s
test / Retrieve Credentials (pull_request) Successful in 1s
pull-requests-open / Check commit compliance (pull_request) Successful in 10s
test / end_to_end_vault (debian11, vault_default) (pull_request) Failing after 9s
test / end_to_end_vault (debian11, vault_with_raft_enabled) (pull_request) Failing after 9s
test / end_to_end_vault (debian12, vault_default) (pull_request) Failing after 2s
test / end_to_end_vault (debian12, vault_with_raft_enabled) (pull_request) Failing after 2s
test / end_to_end_vault (ubuntu2004, vault_default) (pull_request) Failing after 2s
test / end_to_end_vault (ubuntu2004, vault_with_raft_enabled) (pull_request) Failing after 2s
test / end_to_end_vault (ubuntu2204, vault_default) (pull_request) Failing after 2s
test / end_to_end_vault (ubuntu2204, vault_with_raft_enabled) (pull_request) Failing after 2s
test / end_to_end_vault (ubuntu2404, vault_default) (pull_request) Failing after 2s
test / end_to_end_vault (ubuntu2404, vault_with_raft_enabled) (pull_request) Failing after 4s
48 lines
1.2 KiB
YAML
48 lines
1.2 KiB
YAML
---
|
|
name: End-to-end tests
|
|
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
role:
|
|
required: true
|
|
type: string
|
|
description: "Which role should be tested"
|
|
scenario:
|
|
required: true
|
|
type: string
|
|
description: "Which scenarios should be run"
|
|
test_os:
|
|
required: true
|
|
type: string
|
|
description: "On which OS to run the tests"
|
|
secrets:
|
|
GITEA_ACTIONS_USERNAME:
|
|
required: true
|
|
GITEA_ACTIONS_TOKEN:
|
|
required: true
|
|
|
|
jobs:
|
|
molecule-test:
|
|
name: Molecule tests
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: git.ednz.fr/container-factory/ansible-runner:act-latest
|
|
credentials:
|
|
username: ${{ secrets.GITEA_ACTIONS_USERNAME }}
|
|
password: ${{ secrets.GITEA_ACTIONS_TOKEN }}
|
|
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 ${{ inputs.scenario }}
|
|
shell: bash
|
|
working-directory: ${{ gitea.workspace }}
|
|
env:
|
|
MOLECULE_TEST_OS: ${{ inputs.test_os }}
|