fix(CI): Break up workflows and use templates

This commit is contained in:
Timothy Stewart
2023-10-29 13:09:41 -05:00
parent e880f08d26
commit a7d4f88b79
5 changed files with 45 additions and 8 deletions

View File

@@ -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]

View File

@@ -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"

12
.github/workflows/test-default.yml vendored Normal file
View File

@@ -0,0 +1,12 @@
---
name: Test Default
on:
workflow_call:
jobs:
molecule:
strategy:
matrix:
scenario:
- default
extends:
- ./.github/workflows/molecule-template.yml

12
.github/workflows/test-ipv6.yml vendored Normal file
View File

@@ -0,0 +1,12 @@
---
name: Test IPv6
on:
workflow_call:
jobs:
molecule:
strategy:
matrix:
scenario:
- ipv6
extends:
- ./.github/workflows/molecule-template.yml

12
.github/workflows/test-single-node.yml vendored Normal file
View File

@@ -0,0 +1,12 @@
---
name: Test Single Node
on:
workflow_call:
jobs:
molecule:
strategy:
matrix:
scenario:
- single_node
extends:
- ./.github/workflows/molecule-template.yml