diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 54be8ff0..6d8ecdee 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,6 +10,12 @@ on: jobs: lint: uses: ./.github/workflows/lint.yml - test: - uses: ./.github/workflows/test.yml + test-default: + uses: ./.github/workflows/test-default.yml + needs: [lint] + test-ipv6: + uses: ./.github/workflows/test-ipv6.yml + needs: [lint] + test-single-node: + uses: ./.github/workflows/test-single-node.yml needs: [lint] diff --git a/.github/workflows/test.yml b/.github/workflows/molecule-template.yml similarity index 96% rename from .github/workflows/test.yml rename to .github/workflows/molecule-template.yml index 10b6135a..dbb7a9ff 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/molecule-template.yml @@ -1,5 +1,5 @@ --- -name: Test +name: Molecule Template on: workflow_call: jobs: @@ -7,11 +7,6 @@ jobs: name: Molecule runs-on: macos-12 strategy: - matrix: - scenario: - - default - - ipv6 - - single_node fail-fast: false env: PYTHON_VERSION: "3.11" diff --git a/.github/workflows/test-default.yml b/.github/workflows/test-default.yml new file mode 100644 index 00000000..599797ff --- /dev/null +++ b/.github/workflows/test-default.yml @@ -0,0 +1,12 @@ +--- +name: Test Default +on: + workflow_call: +jobs: + molecule: + strategy: + matrix: + scenario: + - default +extends: + - ./.github/workflows/molecule-template.yml diff --git a/.github/workflows/test-ipv6.yml b/.github/workflows/test-ipv6.yml new file mode 100644 index 00000000..42b8e204 --- /dev/null +++ b/.github/workflows/test-ipv6.yml @@ -0,0 +1,12 @@ +--- +name: Test IPv6 +on: + workflow_call: +jobs: + molecule: + strategy: + matrix: + scenario: + - ipv6 +extends: + - ./.github/workflows/molecule-template.yml diff --git a/.github/workflows/test-single-node.yml b/.github/workflows/test-single-node.yml new file mode 100644 index 00000000..5e8475fc --- /dev/null +++ b/.github/workflows/test-single-node.yml @@ -0,0 +1,12 @@ +--- +name: Test Single Node +on: + workflow_call: +jobs: + molecule: + strategy: + matrix: + scenario: + - single_node +extends: + - ./.github/workflows/molecule-template.yml