ci: do not use matrix inside reusable workflow
Some checks failed
development / Check commit compliance (push) Successful in 5s
test / end_to_end_vault (debian11, vault_default) (pull_request) Failing after 7s
test / end_to_end_vault (debian12, vault_default) (pull_request) Failing after 2s
test / end_to_end_vault (debian11, vault_with_raft_enabled) (pull_request) Failing after 7s
test / end_to_end_vault (debian12, vault_with_raft_enabled) (pull_request) Failing after 1s
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 1s
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 1s
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 1s
pull-requests-open / Check commit compliance (pull_request) Successful in 11s

This commit is contained in:
Bertrand Lanson 2024-09-15 22:47:29 +02:00
parent 844e2584de
commit d4c4bb1cf1
Signed by: lanson
SSH Key Fingerprint: SHA256:/nqc6HGqld/PS208F6FUOvZlUzTS0rGpNNwR5O2bQBw
2 changed files with 12 additions and 11 deletions

View File

@ -13,8 +13,13 @@ on:
jobs: jobs:
end_to_end_vault: end_to_end_vault:
strategy:
matrix:
test_os: ["vault_default", "vault_with_raft_enabled"]
scenario:
["debian11", "debian12", "ubuntu2004", "ubuntu2204", "ubuntu2404"]
uses: ./.gitea/workflows/e2e-tests.yml uses: ./.gitea/workflows/e2e-tests.yml
with: with:
role: vault role: vault
scenarios: "['vault_default', 'vault_with_raft_enabled']" scenario: ${{ matrix.scenario}}
test_os: "['debian11', 'debian12', 'ubuntu2004', 'ubuntu2204', 'ubuntu2404']" test_os: ${{ matrix.test_os }}

View File

@ -8,14 +8,14 @@ on:
required: true required: true
type: string type: string
description: "Which role should be tested" description: "Which role should be tested"
scenarios: scenario:
required: true required: true
type: string type: string
description: "Which scenarios should be run (stringified list)" description: "Which scenarios should be run"
test_os: test_os:
required: true required: true
type: string type: string
description: "On which OS to run the tests (stringified list)" description: "On which OS to run the tests"
jobs: jobs:
retrieve-credentials: retrieve-credentials:
@ -45,10 +45,6 @@ jobs:
credentials: credentials:
username: ${{needs.retrieve-credentials.outputs.registry-username}} username: ${{needs.retrieve-credentials.outputs.registry-username}}
password: ${{needs.retrieve-credentials.outputs.registry-token}} password: ${{needs.retrieve-credentials.outputs.registry-token}}
strategy:
matrix:
test_os: ${{ fromJSON(inputs.test_os) }}
scenario: ${{ fromJSON(inputs.scenarios) }}
env: env:
ANSIBLE_HOST_KEY_CHECKING: "false" ANSIBLE_HOST_KEY_CHECKING: "false"
ANSIBLE_FORCE_COLOR: "true" ANSIBLE_FORCE_COLOR: "true"
@ -58,8 +54,8 @@ jobs:
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: "Molecule test" - name: "Molecule test"
run: molecule test -s ${{ matrix.scenario }} run: molecule test -s ${{ inputs.scenario }}
shell: bash shell: bash
working-directory: ${{ gitea.workspace }}/roles/${{ inputs.role }} working-directory: ${{ gitea.workspace }}/roles/${{ inputs.role }}
env: env:
MOLECULE_TEST_OS: ${{ matrix.test_os }} MOLECULE_TEST_OS: ${{ inputs.test_os }}